Home Forums WoodMart support forum Change DESCRIPTION Tag in single product

Change DESCRIPTION Tag in single product

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #557449

    av_admin_1984
    Participant

    Hi

    I want to have the title of the product in the DESCRIPTION section instead of the description name,
    for example, I want to add text plus a product title in this part

    https://woodmart.xtemos.com/mega-electronics/product/asus-geforce-gtx-1660-ti-tuf/

    see the image

    I need the shortcode of the product title to put it with Title section on the elementor page builder

    how is possible?

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

    Hello,

    You can use the Product title widget to show the product title in the description. WooCommerce doesn’t inherently provide a shortcode for the product title.

    Best Regards.

    #557630

    av_admin_1984
    Participant

    Yes I can, But it is H1 and I need H2 not H1
    Give me solution

    #557732

    Hello,

    Make appropriate changes and enter the below code to the functions.php file in your child theme.

    if ( ! function_exists( 'woocommerce_template_loop_product_title' ) ) {
    	function woocommerce_template_loop_product_title() {
    		echo '<h2 class="wd-entities-title"><a href="' . get_the_permalink() . '">' . get_the_title() . '</a></h2>';
    	}
    }

    Best Regards.

    #557994

    av_admin_1984
    Participant

    Hi

    This code did not worked , The sample page in private box
    you have access to this topic
    https://xtemos.com/forums/topic/change-sale-label/

    Don’t share anything…

    #558070

    Hello,

    Here is that file:woodmart/woocommerce/single-product/title.php. You need to edit the theme files for this. All the customizations made in the theme files are at your own risk

    Best Regards.

    #558075

    av_admin_1984
    Participant

    Would you please give me php code that I add to child theme?

    #558310

    Hello,

    Sorry to say it requires customization and is beyond our support policy. Additional code customizations are out of our theme support scope.

    Hope you can understand!

    Best Regards.

    #558406

    av_admin_1984
    Participant

    @Aizaz Imtiaz Awan
    Hello dear

    First of all, thank you for all you did for me, I appreciate that
    Second, you sent me a php snippet and it didn’t work, If it is beyond your support policy, why did you send that? 😀

    Regards

    #558533

    Hello,

    Our aim is always to assist you to the best of our ability within our support policy. Here is that file:woodmart/woocommerce/single-product/title.php.

    You need to edit the theme files for this. Additional code customizations are out of our theme support scope.

    Hope you can understand!

    Best Regards.

    #559378

    av_admin_1984
    Participant

    Please close

    #559386

    Most Welcome!!!.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

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

The topic ‘Change DESCRIPTION Tag in single product’ is closed to new replies.