Reputation: 3214
I've commented out some code in theme-scripts.js
that was causing a problem with my theme but my browser isn't noticing changes? I added alert('test')
to the theme-scripts.js
but the alert didn't show?
I've cleared my browser cache.. I'm following a solution provided by the theme author, it works for everyone but when i change code it isn't recognized. Is there some other cache i have to clear?
Upvotes: 0
Views: 51
Reputation: 121
Depending on how you installed WordPress, sometimes there are caching plugins pre-installed. For example with the auto-installer I use WP Super Cache comes pre-installed (I had a few headaches before I realised that). This could be stopping your files from refreshing straight away.
Check the plugins list in the backend and see if there are any pre-installed caching plugins that might be causing this. If there are then there should be a way within the plugin to clear or disable the cache.
Upvotes: 2
Reputation: 400
You 100% that you're editing the code to the correct theme? In FTP should be wp-contents/themes/Your Custom Theme/js/script-to-change.js
only ask as I fell into this trap editing twentyfourteen theme files rather than custom ones....
Upvotes: 0