WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] TopBar: Set CLOSED as default for all pages (6 posts)

  1. Lisa Libutti
    Member
    Posted 9 months ago #

    Great plugin!

    I'd like to have the TopBar closed on default with the open arrow showing for all pages-- allowing the users to open and close it on their own.

    Is there a way to do this?

    Here's an example of what I'd like it to do:
    http://www.elephantjournal.com/

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

  2. Bob
    Member
    Plugin Author

    Posted 9 months ago #

    Ok - try this.

    in wp-topbar.php ... look for this line of code:

    $html_out = " ".$wptbTopBarNumber.": function() {window.setTimeout(function() { wptbbar_show".$wptbTopBarNumber."();}, 0)}";

    Change it to:

    $html_out = " ".$wptbTopBarNumber.": function() {window.setTimeout(function() { wptbbar_hide".$wptbTopBarNumber."();}, 0)}";

    Let me know if that solves your problem. If it does, I'll find a way to make that an option you can select.

  3. Lisa Libutti
    Member
    Posted 9 months ago #

    Thank you! Easy fix, worked perfectly.

  4. Lisa Libutti
    Member
    Posted 9 months ago #

    Resolved

  5. Bob
    Member
    Plugin Author

    Posted 9 months ago #

    Thanks for responding (you'll be surprised how many people don't!)

    I'll add this as a feature in a future release.

    Bob

  6. Bob
    Member
    Plugin Author

    Posted 8 months ago #

    I just pushed 5.03 with this feature.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags