Changes to theme’s style.css not showing in Appearance > Editor view

[ad_1]

Hi, and apologies in advance for the very niche question. I’m at a loss here, and still new to learning WordPress.

I have a WordPress application setup via Cloudways hosting on a Digital Ocean server. Inside this WordPress installation, I have a custom theme created called ‘squeake’. This ‘squeake’ theme is activated on my wp-admin Appearance > Themes dashboard.

Using SFTP (FileZilla), I’ve added a testing class called ‘cta-button’ to my style.css file with the below properties.

.cta-button {
color: red !important;
}

Then, from the wp-admin dashboard I’ve navigated to Appearance > Editor. I’ve clicked on one of my navigation menu links e.g. ‘Sample Page’, selected Settings in the top right, and under ‘Advanced’ I’ve added a css class ‘cta-button’.

When I hard refresh my chrome browser on the live site (‘Visit Site’), the Navigation Page link now shows up in red colour…great ***however*** when I move to my wp-admin dashboard and to Appearance > Editor, the Page link remains black coloured (even though I can see the class being added to the element in the Chrome Dev Tools > Elements).

I’ve created the same situation locally before (via Local or MAMP), but was able to see the changes in my Appearance > Editor view as well as the live site.

I’ve been through live chats with Cloudways where they’ve purged the server cache but that did not change anything. I’ve also turned off all caching plugins on the WordPress app.

Any thoughts or ideas would be greatly appreciated.

[ad_2]
1 Comment
  1. Firstly, never make changes to a theme’s files. Changes should only be done on a child theme.

    If you’re only wanting to add custom CSS, that can be done in Appearance > Customize > Additional CSS (you don’t need a child theme if you use this method)

    >*”however when I move to my wp-admin dashboard and to Appearance > Editor, the Page link remains black coloured (even though I can see the class being added to the element in the Chrome Dev Tools > Elements).”*

    What are you referring to exactly? Can you share screenshots? Also share the relevant frontend URLs.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer