• 0
Sign in to follow this  
Followers 0

Hierarcy of CSS


Question

Posted · Report post

I have pretty much finished with all but adding content to this site http://www.technoticks236.com but now have a string of questions about CSS and pagelines framework and tidying this site up before I start on the two commercial sites that I used this as a "testing ground" for.  These are the questions relating to CSS and it is this that has probably caused me more problems than anything else in developing this site.

 

1) Custom CSS

 

I have 19 custom CSS sheets in http://www.technoticks236.com/news/wp-content/pagelines how are these created and do I need to keep them all?  The stylesheet in the head of my index page and several of my key pages  http://www.technoticks236.com/wp-content/uploads/pagelines/compiled-css-1390334527.css doesn't even appear in this list of 19.

 

2) Custom CSS minified

 

It is almost impossible to edit and I assume that is because at some point during the development of the site I minified the CSS either through pagelines or through W3 cache (now deleted) or a combination of the two.  This is making it impossible to modify even once I have identified what I need to do through firebug

 

3) CSS hierarcy

 

I am trying to find somewhere on the forums or elsewhere something that will help me identify the hierarcy of CSS in pagelines.  What I really want to do is cut out everything except the pagelines style.css and a child theme style.css.  As a result I am seeing the correct change in firebug, identifying the file but the change is not showing through because there is obviously another css file higher up the hierarchy that is overriding it.  this clearly applies to the .h3 widget-title and the .hentry-pad tags in particular.

 

4) Styles embedded for redundant plugin

 

I uploaded phototonic a flickr integration plugin and decided that it was not what I wanted.  I deactivated the plugin and deleted the files, but I notice from the source code of this page at least http://www.technoticks236.com/the-daily-tick/ there is still a lot of code in there relating to phototonic both in terms of linked style sheets and style elements in the header.  Am I stuck with this.  It only seems to be on this page, but this is the main blog roll and has become very slow to load.

 

 

 

 

Share this post


Link to post
Share on other sites

10 answers to this question

  • 0

Posted · Report post

HI,

 

1. Basically, PageLines Framework has a number of stylesheets i.e .less stylesheets, this includes all sections. Then they're all compiled into one dynamic stylesheet like you mentioned above. However, not sure why you have 11 custom stylesheets, are you saying you have created 11 ?

 

2 & 3. Not entirely sure what you mean by #2, there is as far as I can remember a minify option in PageLines Framework under the Advanced setting, maybe you checked that. If you're adding all your custom CSS/LESS to a child themes style.css or style.less file, then you will most likely need to use one of the PageLines overrides, I recommend you view our documentation for assistance and as to why you need to use one.

 

http://support.pagelines.me/docs/customization/custom-css/

 

4. I'm seeing no mention of phototonic in your page source, has this been resolved ?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks Danny, sorry not to have acknowledged earlier.  I will take a look and get back to you.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

OK - so here is where I am at.  Yes, there were 19 compiled style sheets sitting in there.  It seems that whenever you update the Framework custom css it saves as a new file and keeps the archive in tact.  Removing them via FTP made no negative difference to the site at all so they are gone.  Also some conflicting css in the typography advanced section now removed.

 

Yes, minify was checked.

 

The CSS link was really helpful.  It is pretty difficult getting to stuff on framework as many of the links are now broken so I tend to give up searching around.

 

Simple Custom CSS plugin helping to simplify and has made a big difference (to my frustration levels as well as anything else).

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

If you want to become a ninja in editing the default styling, what I would suggest is sign up to Code School which is free. Then do their free online course/interactive tutorial for Google Chrome Dev tools, upon completion you should be a ninja and have no issue finding the correct class name(s) and adding your own CSS. You will of course need to have some basic knowledge of CSS.

 

If you don't, you should check out TreeHouse, Code School, Codec Academy or Lynda.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks Danny, I'm comfortable with CSS as part of a basic HTML site.  My frustration has been with the fact that I had clearly got lots of overlapping and conflicting CSS in this site which I had iteratively added as I learned to use both wordpress and framework and we didn't take it easy in terms of site functionality either.

 

Although using firebug to identify the selectors was great; adding it to the custom code section of the framework didn't generally work.  It was inconsistent or had a lag on it (I would add it, it wouldn't work, I'd get frustrated and go to bed and ... next morning it would be there).  I am sure that having W3cache and akamai to speed it up as I was creating the site didn't help either.  All caching switched off and adding the Simple Custom CSS has made all the difference (and help from you guys of course!)

 

I will certainly check out the resources above.  OK ... on to the next! ... time to duck I'm sure far more questions coming your way.  BTW most useful plugins:

 

Simple Custom CSS

Category Order and Taxonomy Terms Order
Jetpack only for admins (a saviour)

But here is another question for you.  Having taken this time to get to understand framework is it going to be continued or am I going to HAVE to move to DMS?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

If code worked in Firebug or similar tools, but didn't work when added to your custom CSS, it is likely that you will need to prefix your code with a PageLines override such as #site or #page, for example, instead of:

 

.my-class { ...}

 

Use this:

 

#site .my-class { ... }

 

For me personally, I find working with Chromes dev tools to be superior to Firebug. In regards to cache plugins, they should be the very last thing you add to your site when you design is finalised, unless you know what you're doing. 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes, thanks Danny, I wish I had learned about the #site and #page prefixes earlier!  I have never needed to use the caching tools before ... but then I have not created this type of site before either.  All good stuff and helpful for the future.  Is Framework going to continue to be supported or am I going to have to move over to DMS. Useful to know before I start the next two?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

PageLines Framework will still be supported in such that it will receive maintenance & bug fixes, but is now feature frozen. If I was you I would download the free version of DMS and get yourself used to the new system.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Joy! .. I suspected that would be your answer :)

Everything you've said above the same for DMS or are there some different fundamentals?  CSS Plugin, #site #page overrides ...

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi there, the setup is the same in DMS, use the base theme or customize plugin/cc panel for css changes. Copy paste the code edits from firebug/chrome dev tools in as on the Framework. Overrides aren't needed so much as you're able to give sections specific class names in DMS via a class field inside the theme section options.

 

http://docs.pagelines.com/customize/overriding-default-css

1 person likes this

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
Sign in to follow this  
Followers 0