Title: JS and CSS code not working
Last modified: August 31, 2016

---

# JS and CSS code not working

 *  Resolved [clien007](https://wordpress.org/support/users/clien007/)
 * (@clien007)
 * [10 years ago](https://wordpress.org/support/topic/js-and-css-code-not-working/)
 * I just want to ask when I’m activating this plugin my JS and CSS code is not 
   working. What should I do to activate this plugin however my code and the theme
   JS and CSS code is working? Can anyone help me? Thanks!
 * [https://wordpress.org/plugins/wordpress-seo/](https://wordpress.org/plugins/wordpress-seo/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [oopixjane](https://wordpress.org/support/users/oopixjane/)
 * (@oopixjane)
 * [10 years ago](https://wordpress.org/support/topic/js-and-css-code-not-working/#post-7417012)
 * Hi there, I have tried this plugin with many websites and it has not interfered
   with my JS and CSS before. Were your JS and CSS working before activating this
   plugin? Is there a link to your website which we can take a look?
 *  Thread Starter [clien007](https://wordpress.org/support/users/clien007/)
 * (@clien007)
 * [10 years ago](https://wordpress.org/support/topic/js-and-css-code-not-working/#post-7417016)
 * [http://www.moonwerks.com/](http://www.moonwerks.com/)
 * Check this one. The plugin is activated and the JS and CSS code is not working
 *  Thread Starter [clien007](https://wordpress.org/support/users/clien007/)
 * (@clien007)
 * [10 years ago](https://wordpress.org/support/topic/js-and-css-code-not-working/#post-7417017)
 * Yes it’s working before I activate this plugin.
 *  [oopixjane](https://wordpress.org/support/users/oopixjane/)
 * (@oopixjane)
 * [10 years ago](https://wordpress.org/support/topic/js-and-css-code-not-working/#post-7417019)
 * The website looks fine to me. I did a clean install with the same theme your 
   website used (Ultra) and installed the Yoast SEO plugin and everything is working
   well.
 * What JS and CSS codes are not working? Since the website looks good, I guess 
   the theme’s CSS files are working properly. Are you referring to additional JS
   and CSS files that you added?
 *  Thread Starter [clien007](https://wordpress.org/support/users/clien007/)
 * (@clien007)
 * [10 years ago](https://wordpress.org/support/topic/js-and-css-code-not-working/#post-7417020)
 * Exactly! I added some JS and CSS code and the slider is not in full screen.
 *  [oopixjane](https://wordpress.org/support/users/oopixjane/)
 * (@oopixjane)
 * [10 years ago](https://wordpress.org/support/topic/js-and-css-code-not-working/#post-7417025)
 * Just wondering, where did you add your JS and CSS files? I want to check if your
   JS and CSS files are enqueued properly. Currently, the slider set a max-width
   of 700px regardless of the screen size. As a temporary solution, try adding the
   following CSS until we figure out the problem:
 *     ```
       .metaslider {
           max-width: 100% !important;
       }
       ```
   
 *  Thread Starter [clien007](https://wordpress.org/support/users/clien007/)
 * (@clien007)
 * [10 years ago](https://wordpress.org/support/topic/js-and-css-code-not-working/#post-7417034)
 * I already fix it. I just wondering when I activated the Yoast plugin the `get_permalink()`
   value of the home page was changed to [http://www.moonwerks.com/distribution-management-system/](http://www.moonwerks.com/distribution-management-system/)
 *  [oopixjane](https://wordpress.org/support/users/oopixjane/)
 * (@oopixjane)
 * [10 years ago](https://wordpress.org/support/topic/js-and-css-code-not-working/#post-7417083)
 * Glad you fixed it! Can mark this topic as resolved then. 🙂 For the permalink,
   you might want to check the settings SEO > Advanced > Permalinks and see if they
   are set the way you want it to?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘JS and CSS code not working’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 8 replies
 * 2 participants
 * Last reply from: [oopixjane](https://wordpress.org/support/users/oopixjane/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/js-and-css-code-not-working/#post-7417083)
 * Status: resolved