Archived

This topic is now archived and is closed to further replies.

  • 0

Custom CSS not being recognized by the site

Question

Posted · Report post

Site here: http://storytime.booklamp.org/

 

Hi all. So I've been utilizing the Custom CSS area for quite a while. Then I updated WP and Pagelines and suddenly my site doesn't pull in my CSS.

 

Here's my code...

 

body{}
body.fixed_width .section-branding .content-pad {
padding:0;
}

.fixed_width #branding .content-pad {
padding-bottom:0;
padding-left:0;
padding-right:0;
padding-top:0;
}

#feature-area {
background-color:black;
}

#branding .content {width: 980px}

.fixed_width #page {
  margin:0px auto 0;
  margin-top:0px;
  padding-top:0;
}

}
element.style {
}
.icons {
   z-index:9999;
}

Share this post


Link to post
Share on other sites

13 answers to this question

Posted · Report post

Hi there, looks like there was an unwanted bracket in the css, have removed and changes seem to be taking affect now. Please check and let me know all is ok.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, yes adding #page will make your css more specific. If it's happened since a recent update then also try refreshing/flushing your permalinks if that doesn't work. 

 

Just go to settings>permalinks and hit save, then refresh. I'm looking on your site though in firefox and it looks like all your css is loading correctly.

Share this post


Link to post
Share on other sites

Posted · Report post

Strange, I tried both the #page, and permalink thing, plus I've cleared my caches and used other browsers...still no love over here.

 

The most glaring thing I'm seeing is the big white padding around the BookLamp banner. Is that showing for you, James? The banner should blend into the background just like on BookLamp.org.

Share this post


Link to post
Share on other sites

Posted · Report post

Ok in that case I see the same as you, i was looking at the booklamp.org link thinking that was your site.

 

Looking in the source code for the storytime site the custom css isn't showing, all that's in there in its place is the below css and it doesn't refer to any particular section.

 

padding: 0px;padding-bottom: 0;
padding-left: 0;
padding-right: 0;
padding-top: 0;background-color: black;width: 980px;margin: 0px auto 0;
margin-top: 0px;
padding-top: 0;z-index: 9999; 

How are you adding your css? In the custom code box, via base theme or customize plugin?

 

Are you seeing any css/less error messages in the wp admin bar?

 

Have you migrate or moved the site directories around at all?

Share this post


Link to post
Share on other sites

Posted · Report post

Interesting, so it sees the values but not the selectors?

 

But no, no error messages. It's rather confounding.

Share this post


Link to post
Share on other sites

Posted · Report post

Is there meant to be anything on that page as it's coming up with a 404. Has this site always been set up into this sub-directory? Nothings been moved?

 

Disable all third party plugins see if anything causing issues there.

 

Have you placed any code in the functions.php or entered any scripts anywhere?

Share this post


Link to post
Share on other sites

Posted · Report post

There is, sorry I messed up the link. I've now fixed it above and here it is again: http://storytime.booklamp.org/

 

And yeah, it's always been in that sub, didn't move anything. I'll try the plugins. Haven't altered the functions or put any scripts aside from footer ones like Google Analytics.

Share this post


Link to post
Share on other sites

Posted · Report post

Ok no worries, could you can a screenshot of the custom code page too for us with the code in so we can take a look :-)

Share this post


Link to post
Share on other sites

Posted · Report post

Really? I feel pretty silly now. Then again it's kind of weird a bracket would appear due to updating my site, but everything is now in working order. Thanks James!

Share this post


Link to post
Share on other sites

Posted · Report post

Sure, here it is in it's current state...

 

3Zpzs.png

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there,

 

Can you set up an admin level user for us and send the username and password to hello@pagelines.com for me. We'll log in and take a look for you.

Share this post


Link to post
Share on other sites

Posted · Report post

Try adding #page at the beginning of your selectors.

Share this post


Link to post
Share on other sites

Posted · Report post

Like this?

 

#page body.fixed_width .section-branding .content-pad {
padding:0;
}

Share this post


Link to post
Share on other sites