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

    Hello all,

    i want to add a banner above the title of each product on my eshop.
    You can see the exact position at the link at private content.

    How can i do that if:

    1) Each product has unique banner
    2) One banner for all products

    Thank you

    #764836

    Anything here?

    #765559

    Hi,

    Please consider using a plugin such as this one – https://www.advancedcustomfields.com/ and add custom field to your products and add following code to Functions.php file in Appearance > Editor to display it

    add_action('ava_after_main_container', 'av_custom_single_product_banner'); 
    function av_custom_single_product_banner() {
    	if (is_product())
    	{
    		// Your code goes here 
    	}
    }

    Best regards,
    Yigit

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.