WordPress.org

Ready to get started?Download WordPress

Forums

WP-TopBar
[resolved] Top Bar Not Showing Up (37 posts)

  1. Shack Diva
    Member
    Posted 2 years ago #

    Top bar is not showing up on my site. I do have it set for the top and do have html in it. It does show up nicely on the plug in page. Is it conflicting with the other toolbar or any other plug ins or theme?

    Website: http://www.lasvegas-realestate-communities-homesforsale.com/

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

  2. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    You have entered this script as your Link Text.

    <script src="http://modules.idx.diversesolutions.com/modules/quick_search/ModuleScript.aspx?pid=ae2d405e-20f1-4b5b-b7e6-9697689bba2b"></script>

    That cannot be embedded in the TopBar HTML on your screen since it is embedded in the middle of a <a> tag. The plugin uses jquery to push the topbar on the page while the preview page does not use jquery.

    Bob

  3. thatwastaxing
    Member
    Posted 2 years ago #

    Not working for me either since the update. No HTML. It does work in the footer though.

  4. OptimalC
    Member
    Posted 2 years ago #

    Same problem for me I'm afraid...

    pest control website

    Using v. 3.06. The pop-up shows great in preview, but is totally gone from site. Could this be a cookie-persistence issue?

  5. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    Did you look at the FAQ or the Debug page?

    There is no TopBar HTML being generated on your page.

    You are using Caching plugin, did you clear your Cache after you changed the plugin settings? If not, your Cache is old.

  6. OptimalC
    Member
    Posted 2 years ago #

    Yes, I looked at the FAQ. The debug page only suggests to individually test and remove CSS; that's both impractical and not what I think is the central issue.

    TopBar is activated and is showing a preview.

    link to screengrab

    I cleared caching (several times).

    TopBar showed up once, then stopped.

    Could this be the culprit: If it finds a cookie and the cookie value matches the Cookie Value setting, it prevents the TopBar from showing.

    "If you change the Cookie Value to something new, the TopBar will show up again. This is useful if you want to force the TopBar to show on new content. Make sure to select something you haven't used before. A good idea is to increment the value by one every time you want to force the TopBar to show."

    While testing the plug in - and closing it manually - could I have changed the cookie value to prevent future loading?

    How does one change the cookie value? It is not clear that this is a function within the plugin.

  7. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    For some reason, jquery is not defined on your website. I found that by looking at the Chrome Developer console:

    /about/integrated-pest-management/:105Uncaught ReferenceError: jQuery is not defined

    The plugin forces an enqueue of jquery -- but for some reason it is not working on your site. You may have a plugin installed that is de-registering the WordPress default.

    Follow these steps to add jquery to your theme until I can figure out a long term solution:

    http://wordpress.org/support/topic/how-do-i-enqueue-jquery-in-my-theme?replies=6

    To change the cookie value, go to the Close Button tab. You will see "Cookie Value" as a setting.

  8. OptimalC
    Member
    Posted 2 years ago #

    It it will help, here's the current jQuery comment set from the functions.php:

    <?php
    function load_js() {
    	if (!is_admin()) {
    		wp_deregister_script('jquery');
    
    		// load the local copy of jQuery in the footer
    		wp_register_script('jquery', '/wp-includes/js/jquery/jquery.js', false, '1.3.2', true);
    
    		wp_enqueue_script('jquery');
    
    		// load JS files
    		wp_enqueue_script('selectbox', get_childTheme_url() . '/js/jquery.selectbox-0.5.js', array('jquery',), '0.5', true);
    		wp_enqueue_script('easing', get_childTheme_url() . '/js/jquery.easing.1.3.js', array('jquery'), '1.3', true);
    		wp_enqueue_script('bxslider', get_childTheme_url() . '/js/jquery.bxSlider.min.js', array('jquery', 'easing'), '1.0', true);
    		wp_enqueue_script('custom', get_childTheme_url() . '/js/custom.js', array('jquery', 'bxslider', 'easing'), '1.0', true);
    	}
    }
  9. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    OptimalC, are you willing let me have admin rights to see if I can find a long-term solution? I don't have the issue in the 1/2 dozen sites I've tested.

  10. OptimalC
    Member
    Posted 2 years ago #

    Sure...how can I send you a pm?

  11. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    Your paste above helped. I hacked a functions.php and may have found a long-term fix:

    In wp-topbar.php:

    Change this:

    add_action( 'init', array( __CLASS__, 'wptb_enqueue_jquery' ) );
    add_action('wp_footer', array( __CLASS__, 'wptb_inject_TopBar_html_js' ), 15);

    to:

    add_action( 'wp_enqueue_scripts', array( __CLASS__, 'wptb_enqueue_jquery' ) );
    add_action('wp_footer', array( __CLASS__, 'wptb_inject_TopBar_html_js' ), 9999999);

    Reply back to let me know if this worked.

  12. OptimalC
    Member
    Posted 2 years ago #

    yes, i believe that did the trick. It's showing up now.

  13. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    Ok -- I'll push out a new version in a few days. Thanks for helping me fix this one!

  14. OptimalC
    Member
    Posted 2 years ago #

    Thanks. Can your plug-in (does your plug-in) support multiple image banners? Perhaps serving up a new ad banner every "nth" visitor?

  15. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    The plugin does not do that yet; it is in the features backlog.

  16. imtech
    Member
    Posted 2 years ago #

    Plugin use to work fine until i updated to the new version. When i activated the latest version i found my top bar didn't show. [note: when i've updated the plugin in the past it's worked fine].
    i checked all settings and they were correct - the only thing that worked was to delete all settings then configure it again. However found if i set the 'start delay' for 30000ms the topbar stopped showing again, even changing delay to shorter time or even 0ms didn't work - only fix was to again reset all settings and start again.
    I've got it to work BUT instead of the topbar pushing down my website when it shows it now shows over the top of my website header which is very annoying! Why the change here?? This is why i liked the plugin because it didn't show over the top of your website.
    Liked the way it use to work :(

  17. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    Let's break this down to two issues. 1. Your settings cause the plugin to not work. 2. The Plugin's CSS does not push the page down for you.

    For.1, follow the Debug tab to turn on debug logging. Copy the generated HTML and the debug logging in a response to this message.

    For 2, we will tackle when we understand your issue.

  18. zeyland
    Member
    Posted 2 years ago #

    After update to 3.07 (today) my topbar stay invisible.
    I think that is similary to imtech problem (above)

    I paste below debug>

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    What I should do now?
    Thank you in advance for any suggestions...

  19. zeyland
    Member
    Posted 2 years ago #

    After down-grade to 3.06 must say that this do not help me.
    Still invisible.
    I have upgraded to 3.07 and:

    1. I have deleted all settings (wp database)
    2. Topbar started showing again
    3. I have edited my settings (colors)
    4. Topbar stopped showing again

    Also, must wait for your help :-)

  20. zeyland
    Member
    Posted 2 years ago #

  21. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    I don't see the debug log. Please paste into a response below.

  22. zeyland
    Member
    Posted 2 years ago #

  23. esmi
    Forum Moderator
    Posted 2 years ago #

    No. Log files that are longer than 10 lines should be placed in a pastebin - as per the forum's rules.

  24. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    I only see the HTML. Where is the debug log that you created with &debug?

  25. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    Zeyland

    You have an extra apostrophe in your Message. That is throwing HTML errors. Escape the apostrophe:

    Change your Message to: opublikowaliśmy >> 10.04.2012 Dzban pęka. ATOS TU NAH\'

    Bob

  26. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    Zeyland

    Now to fix problem # 2 -- it is your CSS. You have the position Fixed.

    To have the TopBar push the text down the page, change the TopBar CSS (For the entire TopBar)

    from: position:fixed; top: 40; padding:0; margin:0; width: 100%; z-index: 99999;

    to: top: 40; padding:0; margin:0; width: 100%; z-index: 99999;

    Bob

  27. zeyland
    Member
    Posted 2 years ago #

    Yes, I know about "'" :-). Usually use "`" there.
    I check this solution above.
    Thank you very much, Bob!

  28. imtech
    Member
    Posted 2 years ago #

    Bob, thanks for help. i can get the Top bar to push down the page now by changing the CSS.
    But im still having trouble with the bar going MIA. eg. i had the TopBar working yesterday but when i went to check my website today it would not appear. tried changing a few settings but no luck so had to delete the settings and start again. again was working fine then i went and changed the text and link and saved it and now it won't show again. weird as old version worked perfect for me.

  29. zeyland
    Member
    Posted 2 years ago #

    I can confirm now. This below>
    to: top: 40; padding:0; margin:0; width: 100%; z-index: 99999;
    work excellent! Let me send you "thanks-for-support" per paypal now
    :-D

  30. Bob
    Member
    Plugin Author

    Posted 2 years ago #

    imtech, please follow the instructions on the Debug tab and send me a copy (via pastebin) of your debug log AND the generated HTML.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags