• Kudos for the plugin πŸ™‚

    But there is a slight issue with the plugin, which I recently found out when I fetched my pages from Google WMT. As the CSS for the plugin is generated from the wp-admin (http://example.net/wp-admin/admin-ajax.php?action=megamenu_css&ver=1.3.2) the search engine crawlers are denied the access to the css and the render breaks (as the wp-admin is disallowed for the crawlers in the robots.txt). This also happens when I try to load it over https.

    For now, I’ve allowed crawler access in my robots.txt. It’d be great if the stylesheet is static one. Is there any workaround?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Not to jump on the band wagon here but using admin-ajax.php to load the CSS in this plugin is a bad idea and should not be used for that purpose. Can you please rewrite the plugin to write the CSS to a static file that can be loaded on the site. This is making too many unnecessary call to the DB and is causing performance issues on high traffic sites we manage.

    Plugin Author megamenu

    (@megamenu)

    Hi Both,

    Try wp_dequeue_style(‘megamenu’) in your functions.php file. The CSS should get printed to the <head> instead.

    Contemplate, well aware of that but writing to file also has it’s problems – I’ll add a setting at some point so you can choose Dynamic, Head or File for CSS output.

    Regards,
    Tom

    Thanks Tom that helps. I look forward to having the option you talk about.

    Overall this is a great plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS is blocked – Google WMT issue’ is closed to new replies.