Home Forums WoodMart support forum ERROR woodmart V5.2.0 woocommerce|single-product|title.php

ERROR woodmart V5.2.0 woocommerce|single-product|title.php

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #222048

    kronner
    Participant

    Hi Support,

    I am using a subtitle plugin on the shop page and after updating the template to 5.2.0 woodmart/woocommerce/single-product /title.php does not work.

    You have formatted the HTML subtitle correctly with this old content:

    * Single Product title
    * @version 1.6.4
    */
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    $is_quick_view = woodmart_loop_prop( 'is_quick_view' );
    ?>
    <h1 itemprop="name" class="product_title entry-title"><?php if( $is_quick_view ): ?><a href="<?php the_permalink(); ?>"><?php endif; ?><?php the_title(); ?><?php if( $is_quick_view ): ?></a><?php endif; ?></h1>

    After the update, the full HTML code will be displayed in the subtitle:

    * Single Product title
    * @version 4.4.0
    */
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    ?>
    <h1 class="product_title entry-title">
    	<?php echo esc_html( get_the_title() ); ?>
    </h1>

    If i upload the old v1.6.4 woocommerce/single-product/title.php file to the child theme folder, the subtitle will work again.

    Please help me fix it,
    Thanks

    Attachments:
    You must be logged in to view attached files.
    #222119

    kronner
    Participant

    Hi Support,

    please help me fix it the above problem?
    Thanks

    #222318

    Hello,

    Please find this line: <?php echo esc_html( get_the_title() ); ?> and replace it for this line: <?php echo get_the_title(); ?>

    Best Regards

Viewing 3 posts - 1 through 3 (of 3 total)