frenkyt
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Themes and Templates
In reply to: [Phlox] Phlox theme Mobile Responsive IssueI have got the exactly same issue on my Phlox page.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce dimensions – display suffix (different language)Hi @rur165,
Thanks a lot!
It works again with no problem.
After my cosmetic changes it works exactly how I need!Forum: Plugins
In reply to: [WooCommerce] Woocommerce dimensions – display suffix (different language)Hello @rur165 ,
This looks great and it also works.
Is there any chance to prevent of showing of the custom text when the value of one of the three dimensions is not set?For now, when for example the length is not set, the custom text is still showing but there is no value of the length size.
Thank you!
I also slightly edited your code to something like this:
add_filter('woocommerce_format_dimensions', 'my_custom_dimensions', 10, 2); function my_custom_dimensions( $dim_string, $dimensions ) { //$length_text = $dimensions['length'] . ' ' .'custom-text'; $length_text ='custom-text'. $dimensions['length'] ; //$width_text = $dimensions['width'] . ' ' .'custom-text'; $width_text = 'custom-text' . $dimensions['width']; //$height_text = $dimensions['height'] . ' ' .'custom-text'; $height_text = 'custom-text'. $dimensions['height']; //$dim_string = sprintf("%s x %s x %s %s", $length_text, $width_text, $height_text, get_option( 'woocommerce_dimension_unit' )); $dim_string = sprintf("%s mm x %s mm x %s mm", $length_text, $width_text, $height_text); return $dim_string; }- This reply was modified 5 years ago by frenkyt.
Forum: Themes and Templates
In reply to: [Moon] How to edit the standard search text?Hi,
how did you change it?
You got it different now?Thank you.
Viewing 4 replies - 1 through 4 (of 4 total)