WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] Display delay (5 posts)

  1. ellefrost
    Member
    Posted 1 year ago #

    Hi there,

    I was wondering if it was possible to display & scroll the bar after a certain point in the page? How would i go about doing this?

    Kind regards and thanks in advance,

    Elle

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

  2. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    Are you asking:

    1) Can you display the TopBar in the middle of page? This would be if the page is not scrolled. To do this, use this code in CSS Option C. Change top:-300px to move the TopBar up and down the page.

    position:absolute; top:-300px; bottom:0; left:0; right:0;margin:auto; height:100px; width:100%; z-index: 99999;

    Or

    2) Can you display the TopBar after the user scrolls the page down a set number of pixels? To do this, make sure the Scroll Action is set to on (in the Main Options tab.) Then you have to change the PHP code. Look for this line in wp-topbar.php:

    if(jQuery(window).scrollTop()> 0 )

    Change the ">0" to the number of pixels you want.

    Let me know if this answers your question.

    Bob

  3. ellefrost
    Member
    Posted 1 year ago #

    It was number 2 and it worked great!

    Thank you,

    Elle

  4. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    OK -- I've added this as an option in the next release so you don't have to modify the code for every release.

    The next release will come out after WordPress 3.6 comes out.

    Bob

  5. Bob
    Member
    Plugin Author

    Posted 1 year ago #

    Change of plans -- I will push out version 5.02 in a few minutes. It has your new field in it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic