Single product h1 title is generic - by poissonplume

This topic has 2 replies, 2 voices, and was last updated 7 years, 6 months ago ago by Eva Kemp

  • Avatar: poissonplume
    poissonplume
    Participant
    October 23, 2016 at 22:11

    Hello,
    I am upgrading from 2.x version to version 3.

    One of the differences between the two versions is located in the beginning of the single-product.php file.
    The old version code was :

    <div class="page-heading bc-type-<?php etheme_option('breadcrumb_type'); ?>">
    	<div class="container">
    		<div class="row-fluid">
    			<div class="span12 a-center">
    				<?php woocommerce_template_single_title(); ?>
    				<?php
    					/**
    					 * woocommerce_before_main_content hook
    					 *
    					 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
    					 * @hooked woocommerce_breadcrumb - 20
    					 */
    					do_action('woocommerce_before_main_content');
    				?>
    			</div>
    		</div>
    	</div>
    </div>

    This code allows to display the product title in the h1 tag.

    The new code is :
    <?php et_page_heading(); ?>

    This code displays a generic title as h1 title on the single product page, and no longer the real product title.

    I replaced the new code by its older version, and my website is now working properly. But I wanted to report this issue so that it can be fixed in future versions.

    Kind regards,
    Antoine
    The new code

    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    October 24, 2016 at 09:34

    Hello,

    We’ve forwarded your query to our developers.
    Thank you for the notice.

    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.