Disable CSS

Home Forums MapPress Support Disable CSS

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Chris 2 months, 4 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17525

    semrocc
    Participant

    Is there a way to disabe the CSS…it looks like that option is now gone in the latest plugin version.

    Also, I’m seeing the following displayed on all pages regardless if there is a map or not…can things be setup to only have this load when a map is being displayed?

    Thanks!

    
    <!-- MapPress Easy Google Maps Version:2.46.4 PRO (http://www.wphostreviews.com/mappress) -->
    <script type='text/javascript'>mapp = window.mapp || {}; mapp.data = [];</script>
    <link rel='stylesheet' id='mappress-css'  href='https://www.itsworththetrip.com/wpfiles/wp-content/plugins/mappress-google-maps-for-wordpress/css/mappress.css?ver=2.46.4' type='text/css' media='all' />
    #17528

    Chris
    Keymaster

    Hi,

    The plugin prints one line of javascript and the CSS link before the page is displayed, because it can’t predict if there will be a map shortcode (or PHP code) within the page content. All script files, including the Maps API, are loaded only when a map is actually output.

    The option to prevent loading the CSS completely was removed because most sites seem to use ‘minify’ plugins to combine and minify CSS files. It seemed easier to do that than to manually copy the MapPress classes to the main theme CSS file, especially since those classes will be changing more rapidly with the next few versions.

    #17529

    semrocc
    Participant

    Thanks for the explanation Chris…and thanks for your work on this!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.