This topic has 9 replies, 3 voices, and was last updated 7 years, 6 months ago ago by Olga Barlow
I have installed plugin for product subtitle
It’s called WooCommerce Product Subtitle (https://wordpress.org/plugins/wc-product-subtitle/)
It’s adding the subtitle but with your theme I’m not able to place in the exact spot.
No matter if I select to add the subtitle above or below the title it will show up on the right.
I’m trying to achieve something like on the screenshot
Would you point me to the right direction?
https://www.dropbox.com/s/cz594jzv0pzhtmg/Screen%20Shot%202016-10-06%20at%2011.02.35.jpg?dl=0
Thanks
Hello,
Our product page structure is a bit different from standard WooCommerce that this plugin is developed for. So you probably need to add a code for the subtitle manually to the file xstore/woocommerce/global/breadcrumb.php
Regards
Great. Thanks for that
I’ve added the subtitle within the product pages.
The problem now is that shop page is showing the 1st product subtitle?
Any idea?
Thanks for your help
Hi,
You need to wrap your code that displays this subtitle in a PHP IF_ELSE statement like this:
<?php if( is_singular('product') ) {
echo $subtitle; // function that shows the subtitle
} ?>
Regards
If I make it
<?php if( is_singular('product') ) {
echo $subtitle; // function that shows the subtitle
} ?>
<h2 class="product-subtitle">
<?php echo do_shortcode(' [wc-ps tag="p"]'); ?>
</h2>
<?php endif; ?>
it breaks the shop
Make it this way
<?php if( is_singular('product') ): ?>
<h2 class="product-subtitle">
<?php echo do_shortcode(' [wc-ps tag="p"]'); ?>
</h2>
<?php endif; ?>
Great
Thanks a mill
You are welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up