ThemeMakers
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] The updated wc-template-functions overrides my formattingWas looking for the same solution and found it somewhere else.
Please check code below, it helped me reverting back h3 tags instead of re-styling them to h2:if ( ! function_exists( 'woocommerce_template_loop_product_title' ) ) { /** * Show the product title in the product loop. By default this is an H3. */ function woocommerce_template_loop_product_title() { $tag = apply_filters( 'woocommerce_template_loop_product_title_tag', 'h3' ); echo '<' . tag_escape( $tag ) . ' class="woocommerce-loop-product__title">' . get_the_title() . '</' . tag_escape( $tag ) . '>'; } } if ( ! function_exists( 'woocommerce_template_loop_product_title_h2' ) ) { /** * Modifies product title to H3 in the shop and product taxonomy loop. */ function woocommerce_template_loop_product_title_h2( $tag ) { if ( is_product_taxonomy() || is_shop() ) { $tag = 'h3'; } return $tag; } add_filter( 'woocommerce_template_loop_product_title_tag', 'woocommerce_template_loop_product_title_h2' ); }put this snippet into woocommerce/functions.php
- This reply was modified 9 years, 1 month ago by ThemeMakers.
Thanks for your nice feedback David. The theme is available for purchasing on themeforest, you can check it out here.
Your cooperation is much appreciated!
David, I’ve already solved that problem by adding some jQuery instances.
In any way that would be great if you just implement that stuff. For your reference here is a link to the theme I was talking about.Hi David,
Unfortunately it’s impossible to give you a link for download the theme, because I’m actually selling it on marketplace. The people who are buying my theme are supposed to use your plugin as required for donation purposes. That’s why I’m asking about that kind of quick fix.
What I actually do in the theme, I’m just deregistering styles that your plugin uses and adding some extra styling (inbuilt into the theme) to reach my theme’s design and look. So to be able to better operate with the form elements it’s good to have labels for each form element there.
As for now I’ve suggested my customers to not update your plugin until this problem is sorted out.
Thanks for your fast reaction.
Alex
btw it’s more convenient and user friendly to use text wrapped with labels when you click that text and cursor stays onfocus in the field that belongs to it…
I’m using it with my theme.
Please give me a hint how it’s possible to avoid this kind of issue with no writing any custom code to the theme?in other case I’d need to add a small hack again like I’ve added for checkboxes and radiobuttons for wrapping text with labels.
Thanks for understanding,
AlexHey David,
Thanks a lot for doing a great work on this plugin.
Just one request so far. In the latest version you’ve missed one important part, I’m about labeling the text that is following by form elements like inputs, selects etc.The main reason: many people have customized/adopted the look of forms to their own websites, previous versions were good in that, but your latest one has broken the look at all 🙁
please check the screenshot of how it was looking before and after update: http://awesomescreenshot.com/0194zmi346
Your quick update in that direction would be much appreciated 😉
Regards,
Alex