Site logo

Archived topic

Formatting Lost With Updates

14 replies · Started by Mary Pearson on January 26, 2017

Viewing posts 1–15 of 15

I've lost a lot of the custom css formatting on several of my sites with the latest updates including width/padding of sub-menus, padding of footer, spacing between footer widgets, etc.

Example at https://caribecampo.com/

/* Description "Sosua, DR" - Add Shadow */
.site-description {
text-align: center;
color: #d44f00;
text-shadow: 1px 1px 1px #000000; }

The colour should be an orange/red, not default of gray. I've deleted cache and tried it in Safari, Chrome and Firefox.

I have been able to fix the others as I go along, although I haven't figured out a fix for this one yet, but thought perhaps I should mention it to you. It may be more noticeable to me because I have so many sites that are using GP theme and Premium.

Hard for me to tell because you have WP Rocket activated.

Can you clear the WP Rocket cache and deactivate the plugin, then let me know?

From what I can see, WP Rocket is taking your CSS and adding it above the defaults.css file, meaning the defaults are more important than your child CSS. You can fix this by simply making your CSS more specific.

OMG you are brilliant! As soon as I de-activated WP-Rocket the colour came back. Thank you!

You might be able to configure WP Rocket to display your child theme CSS after the other CSS so it's more important.

The site isn't that big. I've just de-activated it for this one. I don't think it will make a big difference. Thank you.

Awesome! Thank you!

Mary - do you think you could do something for me as I don't have access to WP Rocket + your specific settings?

If you don't have time, that's totally ok.

If you do, can you go to Appearance > Editor and open the Theme Function (functions.php) file? Or you can do it via FTP if you're more comfortable.

Find:

wp_enqueue_style( 'generate-child', get_stylesheet_uri(), true, filemtime( get_stylesheet_directory() . '/style.css' ), 'all' );

And replace it with:

wp_enqueue_style( 'generate-child', get_stylesheet_uri(), array( 'generate-style' ), filemtime( get_stylesheet_directory() . '/style.css' ), 'all' );

Then re-activate WP Rocket and clear the cache.

Same issue?

Sorry it took me a while to get back to you Tom. We had some internet problems here.

Of course I am delighted to help in any way I possible can. You have been so generous to me with your time.

I did exactly as you requested and everything is working tickety-boo! Awesome! Thank you!

Thank you! Are all of the WP Rocket settings the same as before? Things don't seem to be minified in the source like they were before?

I didn't make any changes to the wp-rocket plugin. I just use it out of the box.

Strange - any chance you can clear the cache inside the plugin?

Really appreciate your help :)

I did clear the cache inside the plugin before I wrote to you. I cleared it and browser cache both.

Interesting. I'm glad it's working now - thanks for testing with me! :)

Anytime Tom!

This archived topic is closed to new replies.