Woocommerce hook

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28074
    Tomasz Thiel
    Participant
        Expired

        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>’;
        }

        #28088
        Aizaz Awan
        Keymaster

            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.

            #28113
            Tomasz Thiel
            Participant
                Expired

                i cant do it, because text after title should by dynamic depens of product brand

                #28200
                Aizaz Awan
                Keymaster

                    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.

                    #28210
                    Tomasz Thiel
                    Participant
                        Expired

                        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?

                        #28259
                        Aizaz Awan
                        Keymaster

                            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.

                          Viewing 6 posts - 1 through 6 (of 6 total)
                          • You must be logged in to reply to this topic.
                          Customize Icon
                          Need Customization? We specialize in delivering high-quality web and mobile design/development services to our clientele. Should you require customization services, please do not hesitate to reach out to us at your convenience.