Okay
  Public Ticket #3061146
Specific page for global section
Closed

Comments

  •  2
    schiarla started the conversation

    Hi, is there a way to have a global section apply only to product of woocommerce, and not on the other pages? 

    Thanks a lot!

  •  8,839
    Tahir replied

    Hey Again,

    I am afraid there is no such Theme Feature available for it and Custom Code would have to be used. 

    Let us know the details so we can write up custom code.


    Thanks 


    ThemeNectar Support Team 

  •  2
    schiarla replied

    Hi, thanks for the quick reply! I had find a code like this:

    body:not(.single-post) .nectar-global-section.before-footer {    display: none;
    }
    

    If there is a code like this for exlude all pages but show only on single product page of woocommerce it's a huge help! What do you need for more info?

  •  8,839
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    body:not(.single-product) .nectar-global-section.before-footer {
        display: none;
    }

    Thanks


    ThemeNectar Support Team 

  •  2
    schiarla replied

    Thanks a lot, it work fine! Thank you so much for the help!