WordPress.org

Ready to get started?Download WordPress

Forums

MP6
[resolved] Prevent Admin Menu Styles from Loading on the Front End (3 posts)

  1. Robert Neu
    Member
    Posted 1 year ago #

    I noticed that MP6 is outputting styles for the admin bar on the front end even if nobody is logged into the site. A simple check will prevent this and save normal site visitors an extra http request.

    Here's the code that I updated in the plugin to prevent the styles from loading:

    https://gist.github.com/fatmedia/5853892

    http://wordpress.org/extend/plugins/mp6/

  2. Till Kr├╝ss
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks, I just added is_admin_bar_showing for the mobile admin-bar styles in 731227.

  3. Robert Neu
    Member
    Posted 1 year ago #

    Sweet! I wasn't aware of is_admin_bar_showing until now. I'll have to remember that one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic