Home › Forums › WoodMart support forum › Change DESCRIPTION Tag in single product
Change DESCRIPTION Tag in single product
- This topic has 11 replies, 2 voices, and was last updated 1 week ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
April 15, 2024 at 10:35 pm #557449
av_admin_1984ParticipantHi
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 parthttps://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.April 16, 2024 at 12:05 pm #557629
Aizaz Imtiaz AwanKeymasterHello,
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.
April 16, 2024 at 12:07 pm #557630
av_admin_1984ParticipantYes I can, But it is H1 and I need H2 not H1
Give me solutionApril 16, 2024 at 4:27 pm #557732
Aizaz Imtiaz AwanKeymasterHello,
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.
April 17, 2024 at 2:01 pm #557994
av_admin_1984ParticipantHi
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…
April 17, 2024 at 4:32 pm #558070
Aizaz Imtiaz AwanKeymasterHello,
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.
April 17, 2024 at 4:36 pm #558075
av_admin_1984ParticipantWould you please give me php code that I add to child theme?
April 18, 2024 at 10:34 am #558310
Aizaz Imtiaz AwanKeymasterHello,
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.
April 18, 2024 at 12:45 pm #558406
av_admin_1984Participant@Aizaz Imtiaz Awan
Hello dearFirst 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
April 18, 2024 at 4:23 pm #558533
Aizaz Imtiaz AwanKeymasterHello,
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.
April 22, 2024 at 11:20 am #559378
av_admin_1984ParticipantPlease close
April 22, 2024 at 11:25 am #559386
Aizaz Imtiaz AwanKeymasterMost 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. -
AuthorPosts
The topic ‘Change DESCRIPTION Tag in single product’ is closed to new replies.
- You must be logged in to create new topics. Login / Register