• 0

Compiled CSS, where to find or reset


Question

Posted · Report post

Hello, some compiled CSS is reseting my CSS rules in style.css (child theme), I have no custom code in Pagelines site options, where can I find or reset this compiled code?

 

I have no caché plugin or similar

 

Thank you

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

Posted · Report post

Hi,
 
The compiled CSS isn't reseting your custom CSS in your child theme, its just that your child theme doesn't have priority. To override the default CSS, you will need to prefix your custom rules with one of the following:
 
#site or #page
 
For example:
 
#site .example {
     color: #232425;
}
 
This information is also covered in the PageLines Framework docs - http://support.pagelines.me/docs/customization/custom-css/
 
Scroll down until you see the section called "PageLines Overrides"

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi rafaeldesilva - If you navigate to the DMS visual editor - Global Options - Resets you'll see a button to flush the CSS/LESS cache. I think that will do the trick.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Sorry, DMS visual editor? I don't know where that is, I'm using Pagelines framework

 

Thank you

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi,

 

Go to Dashboard > PageLines > Site Options.  Scroll down to the very bottom of the screen, and you'll see Restore Defaults as an option. 

 

Take care here, because this will wipe everything you setup in Framework clean.  You will have to rebuild your site from scratch - logo, branding, colors, layout... the works. 

 

Compiled CSS is dynamic, and thus shouldn't have to be cleared this way.  Just remove your custom code from any added to child theme stylesheets or PageLines Customize stylesheets.  Save the settings and the Compiled CSS will be cleared of any custom code.  That does not include code from plugins, so deactivate those as well.

 

Why do you believe clearing the compiled CSS is the right way to do this?  Moreover, what's wrong that you feel the need to do it?  Maybe we can help address that issue, and save you from messing up the site.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Restore defaults... sounds very dangerous, I won't dare to do that, I have too many options and layouts configured. I need to clear compiled CSS because, as you can see in the image I attached (from DOM inspector in Chrome), compiled code is nullifying my margin-right: 20px. I thought compiled code was produced by custom code in site options, but I emptied all this custom code.

 

Thank you

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now