Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

array echoed in styles in header

    • 9 years ago CarolineElisa
      Participant

      Expired

      https://monosnap.com/file/3Bq8hWkd62v3X00tV519oY8Ljrh5TQ

      Also wondering why there are two sets of CSS output in header? Seems inefficient, there should be at the most just one chunk for the options.

    • 9 years ago Mirela
      Participant

      Hello,

      This is dynamic css code generated from the theme settings. It is very important and if you try to delete it, it will break the theme.
      The array is not necessary generated from theme scripts. It could be from one of your installed plugins. Have you tried to disable them all and check? However this is not really an issue.
      If you want to make your site perform faster, You can install a cache plugin or minify some of the css files. Remove plugins you do not use and if there are elements you do not use , then you could delete their specific css files (example: if you do not use the counters, then you may remove odometer.css file).

      Best regards!

    • 8 years, 12 months ago CarolineElisa
      Participant

      Expired

      Thanks Mihaila.

      I am not using counters (among other elements) but when I try the following in my child theme’s functions.php file:

      add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
      function theme_enqueue_styles() {
          wp_dequeue_script('odometer.min');
          wp_deregister_script('odometer.min');
      }

      I get the following console errors, and slideshows and tabs etc do not load:

      isotope.js?ver=1:11 Uncaught TypeError: Cannot read property 'opera' of undefined(anonymous function) @ isotope.js?ver=1:11(anonymous function) @ isotope.js?ver=1:11
      jquery.fancybox.js?ver=1:139 Uncaught TypeError: Cannot read property 'msie' of undefined(anonymous function) @ jquery.fancybox.js?ver=1:139(anonymous function) @ jquery.fancybox.js?ver=1:1985
      jquery.fancybox-media.js?ver=1:88 Uncaught TypeError: Cannot set property 'media' of undefined(anonymous function) @ jquery.fancybox-media.js?ver=1:88(anonymous function) @ jquery.fancybox-media.js?ver=1:196
      jquery.min.js?ver=3.0.0:4 Uncaught TypeError: a.indexOf is not a function

      Please advise the correct technique.

    • 8 years, 12 months ago CarolineElisa
      Participant

      Expired

      This reply has been marked as private.
    • 8 years, 12 months ago CarolineElisa
      Participant

      Expired

      Hello?

    • 8 years, 12 months ago Ruco
      Keymaster

      Hello,

      You have added the right function, but I can’t see you site so I can check out the errors.

      Have you removed other scripts too?

      Can you show us your site credentials? You want to remove only that script/style?

      Regards!

Viewing 5 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password