Support » Fixing WordPress » Editing Custom theme

  • Hello. I recently edited the content of our website but I want to edit the look as well. The website was built using a custom theme but for some reason any changes I make to the CSS files in the theme editor do not affect the formatting in the actual site. Is it possible that the original theme developer locked the files in some way to prevent any edits? How would I be able to confirm that this is the problem? If that isn’t the explanation I’d appreciate it if some kindly soul could point me in the right direction so I can make changes. Simple things like font size and colour is all I’m trying to do.

    Thanks in advance.

    • This topic was modified 1 month, 2 weeks ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • The theme could be loading minified versions of the CSS files. So changing the normal file will have no effect. Also, depending on if you are using a caching plugin, or if you changed the version number of the CSS file (and if the theme author used the version number when loading the file), the browser would just give you the same file again because it doesn’t know it changed.

    Look in the code for wp_enqueue. This will show you if a minified file name is loaded, and if a version number is used. You’ll have to figure out the external caching yourself.

    Is it possible that the original theme developer locked the files in some way to prevent any edits?

    The likelihood that this is the case? 0.01%

    The likelihood that you’re doing something wrong or having a stale cache problem? 99.99% 😀

    If that isn’t the explanation I’d appreciate it if some kindly soul could point me in the right direction so I can make changes.

    First, while I’m not saying this is the reason why your edits aren’t reflecting on your website, as a best practice, I’ll suggest you don’t edit your theme’s CSS directly… as you’ll lose all your edits if you ever update the theme.

    Instead, add any custom CSS code into the ADDITIONAL CSS section of CUSTOMIZER (APPEARANCE => CUSTOMIZE => ADDITIONAL CSS). As a bonus, the CSS code placed here gets output towards the very end of the HEAD search of the HTML document, giving it higher priority over any other CSS in your theme.

    So add your custom CSS as I’ve advised above and let us know how it goes. If it still doesn’t work, kindly provided a link to your website so we can check the code and give you feedback.

    Good luck, and stay blessed!

    EDIT: Oops, didn’t realize someone else was answering. I’ll leave my response here though, just in case someone finds it useful.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.