• Resolved lazykins

    (@lazykins)


    Hello! Is it possible to have the bar appear only once per session and not on each successive page visited (no matter where the user enters the site)?

    Right now, I have it turned on for home page, then hidden on all others. That takes care of my request as long as people enter on the home page, which isn’t 100%.

    Thank you!
    PS – thank you for your instructive text re PHP syntax.

    https://wordpress.org/plugins/wp-topbar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bob

    (@rfgoetz)

    No, it would take me a bit of time to code that up.

    My recommendation is to use a Close Button and enable cookies. Then if the user closed the TopBar, it will not re-appear.

    Bob

    Plugin Author Bob

    (@rfgoetz)

    Closing – no response in over a week.

    Hi,

    I want the bar to keep closed on every page when the user closed it once. But for the first visit, I want it to be opened. At the moment, it appears on every site.

    I enabled cookies, an fixed the setting “Re-openable TopBar should start Open or Closed:” on “open”. If I fix ist on “closed” it’s also closed for the first visitor – not what I want.

    Stefan

    PS: Very nice plugin!!

    Plugin Author Bob

    (@rfgoetz)

    Stefan,

    I think I understand your question.

    Allow TopBar to be closed by user: Yes
    Allow the TopBar to be reopened: No
    Enable Cookies: Yes
    Cookie Value: <set it to anything but 1>

    This will allow the user to keep the TopBar closed once they see it. If they revisit the site, the TopBar will not be shown again.

    Bob

    Hi Bob,

    thanks for the answer. I want the settings like this:

    Allow TopBar to be closed by user: Yes
    Allow the TopBar to be reopened: Yes
    Re-openable TopBar should start Open or Closed: should start open; if user closed once, it should start closed.
    Enable Cookies: Yes
    Cookie Value: e.g. 3

    Stefan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Appear once per user session?’ is closed to new replies.