Home › Forums › WoodMart support forum › Dynamic Size Guide Title on Product Page › Reply To: Dynamic Size Guide Title on Product Page
June 6, 2023 at 7:52 pm
#473114
Cioppi88
Participant
I found a solution to get what I need, I update the file with changing in order to works fine.
I changed the file size-guide.php from /wp-content/themes/woodmart/inc/integrations/woocommerce/modules.
I changed this lines:
<h4 class="wd-sizeguide-title">
<?php echo esc_html( $sguide_post->post_title ); ?>
</h4>
with this:
<h4 class="wd-sizeguide-title">
<?php echo get_the_title( $sguide_post->ID ); ?>
</h4>
and this:
<a class="wd-open-popup" rel="nofollow" href="#woodmart_sizeguide">
<span><?php esc_html_e( 'Size Guide', 'woodmart' ); ?></span>
</a>
to this:
<a class="wd-open-popup" rel="nofollow" href="#woodmart_sizeguide">
<span><?php echo get_the_title( $sguide_post->ID ); ?></span>
</a>
I try to use the child theme in order to avoid overriding for the future theme update but even I try to recreate the directory path it doesn’t work.
Do you have any suggestion?