This topic has 2 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #202735
     Vanessa
    Participant

    Hi there,

     

    Is there a way to show a javascript snippet only to logged in users, or only to members of a certain level?

    I want to put some scripts in the footer (or header) of the page that apply to all pages, and I’d rather not edit the core functions in the theme like footer.php. Is there a way to conditionally display a script based on memberlevel/login state? Similar to how the shortcodes for this work within posts and pages.

     

    Thx

    #202783
     Laura
    Moderator
    Not marked as solution
    #202919
     Radu
    Moderator
    Not marked as solution
Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?