WordPress.org

Support

Support » Plugins and Hacks » WP-TopBar » [Resolved] Display delay

[Resolved] Display delay

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

    @rfgoetz

    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

    It was number 2 and it worked great!

    Thank you,

    Elle

    Plugin Author Bob

    @rfgoetz

    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

    Plugin Author Bob

    @rfgoetz

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Display delay’ is closed to new replies.
Skip to toolbar