Disable CSS

Home Forums MapPress Support Disable CSS


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

    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?


    <!-- MapPress Easy Google Maps Version:2.46.4 PRO (http://www.mappresspro.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' />


    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.


    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.