- This topic has 5 replies, 2 voices, and was last updated 1 year, 4 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Home Page › Forums › Porto – AI Powered WordPress Website & Shop Builder › Woocommerce hook
Tagged: hook; woocommerce
Hi,
How do I add text below the product title on a single product page? I have a product page built in wp bakery that I got with the theme.
I have this kind of code but is not work
// Hook, który wyświetla tekst po tytule produktu
add_action(‘woocommerce_single_product_summary’, ‘custom_test_text_below_product_title3’, 6);
function custom_test_text_below_product_title3() {
echo ‘<p class=”custom-test-text” style=”font-weight: bold; color: red; margin-top: 10px;”>test3</p>’;
}
Hello, @tomaszthiel1,
Since you mentioned that your product page is built with WP Bakery, please go to Porto >> Template Builder >> Single Product. From there, edit the custom layout using the WP Bakery Page Builder and add any elements anywhere on the page according to your requirements.
Best Regards,
PThemes Team.
i cant do it, because text after title should by dynamic depens of product brand
Hello, @tomaszthiel1,
Then you can try with the “Porto Heading” element and choose its dynamic tags option as per your requirements.
Best Regards,
PThemes Team.
ok, thx. so if I want to set e.g. the text “free delivery” which will appear when the product costs >= 150 CHF, will I be able to refer to this field from the functions.php file?
Hello, @tomaszthiel1,
Unfortunately, there isn’t a free delivery option with conditions available with that specific theme feature. You may need to explore third-party plugins or custom code to meet your requirements.
Best Regards,
PThemes Team.
Welcome Back 👋
Sign in to access your account and continue where you left off.
Welcome aboard 🚀
Create your account to access everything you need.