Jump to content
TourKick (Clifford P)

Customizations work in CSS/LESS Site Options but not in child theme style.less

Recommended Posts

TourKick (Clifford P)

Please see this: http://fyre.it/1Imf

 

Any reason why that would happen?

 

Should I use a different filename, like color.less or something?

 

FYI: I have a style.css in the child theme but no CSS rules in it.

 

Thank you.

Share this post


Link to post
Share on other sites
Simon

Its all a matter of load time.

 

the CORE less files get parsed

Then any files that use the function pagelines_insert_core_less() 

Then all the sections

Then any dynamic css

then the users custom less.

 

The childtheme less is inserted with pagelines_insert_core_less()

 

If you want it to come in later either use the custom less box, or a filter or use style.css

Share this post


Link to post
Share on other sites
Guest

That makes sense since it did used to work in style.css but not once I moved it to style.less. Good to know.

 

So why isn't style.less inserted AFTER the dynamic css (not sure what that is), or at least after the sections? That would make the most sense to me.

 

Thanks.

Share this post


Link to post
Share on other sites
Rob

Cliff,

 

I've found that sometimes the most sensible things aren't where they belong, but for valid reasons that don't seem obvious.  I'm not sure what reason exists for the order of these files, but I'm confident our developers have a valid reason.

 

Unfortunately, I can only suggest to them that they consider changing the order.  I'm doubtful they will do it on my suggestion, but only if a problem; a serious problem occurs.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Simon

Cliff its done in that order for a reason..

 

All CORE less loads.

 

Then any plugin or theme style.less loads, this gives them the power to override the core css.

 

Then the sections load, now the sections can override core AND a child theme.

 

We experimented with various load orders in pre 2.0 beta cycle and the developers who were testing with us asked for this load order, they found it the easiest to work with.

 

If you are having problems overriding selectors then maybe your just not being specific enough.

  • Like 1

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


×