Created
August 22, 2019 12:59
-
-
Save thecodepoetry/40723eaac08fe5da20b046946bace569 to your computer and use it in GitHub Desktop.
WC product loop title to h2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ( ! function_exists( 'dt_woocommerce_template_loop_product_title' ) ) : | |
| /** | |
| * Show the product title in the product loop. | |
| */ | |
| function dt_woocommerce_template_loop_product_title() { | |
| if ( presscore_config()->get( 'show_titles' ) && get_the_title() ) : ?> | |
| <h2 class="entry-title"> | |
| <a href="<?php the_permalink(); ?>" title="<?php echo the_title_attribute( 'echo=0' ); ?>" rel="bookmark"><?php | |
| the_title(); | |
| ?></a> | |
| </h2> | |
| <?php endif; | |
| } | |
| endif; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please try this code in your child theme functions.php