• Resolved hastibe

    (@hastibe)


    I really appreciate your documentation on How to remove CSS and JS on non UM pages.

    I see that it says // Set here IDs of the pages, that use Ultimate Member scripts and styles and also // Set here URLs of the pages, that use Ultimate Member scripts and styles and I was looking for clarification–should I be setting both the IDs and URLs of the pages that use Ultimate Member scripts and styles under those different sections, or is it just providing me two different ways to identify the pages, by ID or by URL?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hastibe

    (@hastibe)

    Also, as a secondary question, if adding to the array where it says to “// Set here IDs of the pages, that use Ultimate Member scripts and styles,” would I add them as comma separated numbers, like the following below?

    $um_posts = array(266, 262, 265, 264, 267);

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hastibe

    1. They are two different ways.
    2. Yes, that’s how you add the Page IDs separated by a comma.

    Thread Starter hastibe

    (@hastibe)

    @champsupertramp — thanks for clarifying! Even if I don’t list some of my UM pages like /account/ and /user/ under where it says // Set here URLs of the pages, that use Ultimate Member scripts and styles, the UM scripts and styles still seem to run on those UM pages, which I guess is good, but I found confusing (otherwise, the code is working as expected!).

    Do you know why the scripts and styles still run on those UM pages, even if I’m not setting them as pages that use UM scripts and styles?

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