When to load scripts/styles

Home Forums Quform WordPress When to load scripts/styles

This topic is: not resolved
  • This topic has 5 replies, 2 voices, and was last updated 1 week ago by Ally.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #25683
    ajpinto
    Participant

    Hi, is it possible not load scripts on our home page only? We have a newsletter on every page except our landing page. We have too many URL’s to add an exception to, and autodetect doesn’t seem to work on custom post types. Thanks!

    #25699
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #33718
    Yoda
    Participant

    Hi Ally,

    is it possible to only load scripts on pages that have an url with /ad/ ?
    Autodetect doesn’t seem to work on custom post types.

    #33720
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #33723
    Yoda
    Participant

    Hi Ally,

    works perfectly, thanks.

    Unfortunatley I overlooked that I have 2 forms, so the other form is now affected.
    Can we add into the above code another page /contact/ ?

    Thanks

    #33725
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy