Jump to content
Kevan H

Navbar CSS changes not affecting all pages

Recommended Posts

Kevan H    0
Kevan H

Hey everyone,

I'm a little new to Pagelines and CSS in general, so forgive me my problem is fairly basic to solve.

I'm currently trying to style the Navbar, and everything's mostly looking how I want it to on the main blog page. However, the changes that I'm making are not being reflected on any of the single post pages, author pages, search result pages, or really anything that isn't the main/home page. Changes to fonts, colors, link highlighting, the background image, etc, are all not being reflected, and I can't seem to identify how the navbar differs on other pages with Firebug, etc.

Since I'm developing this site locally, I'm not able to provide a link for the CSS. I've copied all of the navcode below, hopefully that's of some use to someone. Any help is much appreciated!

Thanks in advance,

Kevan


#navbar {

float: left;

width:100% !important;

position: relative;

}


#navbar ul {

clear: left;

float: left;

list-style: none;

margin: 0;

padding:0;

position: relative;

left: 50%;

text-align: center;

width: auto !important;

}


#navbar ul li {

display: block;

float: left;

list-style: none;

margin: 0;

padding: 0;

position: relative;

right: 50%;

}


.navbar {

background: url(navbanner.jpg) !important;

background-repeat: no-repeat !important;

box-shadow: none;

float: none !important;

}


.navbar.navbar-content-width {

border-radius: 0px 0px 0px 0px;

}


.navbar.pl-color-black-trans {

background-color: none;

border-top: none;

}


.navbar .navline > li > a {

font-family: Dekar-webfont, Helvetica, Arial, sans-serif;

color: #454a4d;

font-size: 15px;

text-transform: uppercase;

display: block;

float: center;

letter-spacing: .25em;

padding: 10px 15px 10px 15px;

text-decoration: none;

}


.navbar .navline > li > a:hover, a:active {

background: #ffffff;

text-decoration: none;

color: #454a4d; /*darker grey*/

padding: 10px 15px 10px 15px;

}

Share this post


Link to post
Share on other sites
Rob    547
Rob

It's appearing to be the same in Firefox on all posts and pages.

Is there a specific browser this is happening with?


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Kevan H    0
Kevan H

Seems to shopping up on all browsers. Or at least, Chrome, Firefox, and Safari (I haven't tried IE, but it's probably a safe bet).

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

Can you provide screenshots of the what CSS is now applying, as well as concept images of what you're trying to achieve please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Kevan H    0
Kevan H

Certainly. Here's the nav bar as it appears on the home page:

Screen%20Shot%202012-10-01%20at%2010.59.43%20PM.png

and after I click on any single post or page:

Screen%20Shot%202012-10-01%20at%2011.00.00%20PM.png

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi Kevan,

Thanks for the providing the image, would it be possible for you to provide a link to the site in question please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Kevan H    0
Kevan H

Danny,

Unfortuantely, I'm developing the site locally for the time being, so there's no link to provide. Sorry!

Share this post


Link to post
Share on other sites
catrina    103
catrina

When a live version of the site is available, would it be possible to post the link here?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
Kevan H    0
Kevan H

Catrina,

The reason I'm building a site in Pagelines in the first place is to replace the theme of an existing and operational site, so my plan was to not take the new theme live until everything was in place and ready to go. Since my hosting package only provides me with one database, I'm not able to develop and test online on a separate Wordpress install, and am not comfortable switching the existing theme to the one I'm working on now when it's as broken as it is.

I'll see if I can find a work-around for getting it online to share a link. In the meantime, if anyone has any suggestions to fix this navbar problem, it'd be much appreciated!

Share this post


Link to post
Share on other sites
Rob    547
Rob

Here's your problem:


background: url(navbanner.jpg) !important;

You are expecting WP to find an image file that has a specific location. I'm guessing you've uploaded it to your root directory. When you navigate to any other location in the site, the CSS is looking for that .jpg right there, not in the proper location, where the actual file is located. The fix would be to do this:

background-image: url('http://www.thefulldomain.com/anypathto/navbanner.jpg') !important;

Change "http://www.thefulldomain.com/anypathto/" to the full URL to that image. Keep in mind that when you navigate to a category or other section, it's like going to a different folder. As with HTML, one folder cannot see into another unless it's link is properly pathed.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Kevan H    0
Kevan H

Yep, that did it. Thanks a bunch, Rob!

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


  • Similar Content

    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      every since Chrome introduce scroll anchoring (see chrome://flags) blog posts on my page start scroll automatically as soon as the user scrolls down a bit. It is super annoying and I don't know exactly what triggers the incompatibility with Chrome's latest feature that is supposed to improve usability.
      Since I don't know what causes it (Pagelines, or a Plugin), I would like to disable the feature using a CSS override that Google describes as follow:
      "Scroll anchoring aims to be the default mode of behavior when launched, so that users benefit from it even on legacy content. A CSS property overflow-anchor can disable scroll anchoring in part or all of a webpage (opt out), or exclude portions of the DOM from the anchor node selection algorithm. This property supports the following values when applied to an element E:
      overflow-anchor: auto (the default value) declares that the DOM subtree rooted at E is eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E. overflow-anchor: none declares that the DOM subtree rooted at E is not eligible to participate in the anchor node selection algorithm for any scrolling box created by E or an ancestor of E." Do you guys happen to know how to use that property with the ROOT element so it applies to the whole page?
      Thanks
      Michael 
    • wyo22ski
      By wyo22ski+
      Hello,
       
      I'm basically a designer and understand a little on how to change CSS, etc., so please excuse my ignorance...  I recently upgraded to the newest platform from the DMS and my old DMS theme no longer functions.  I'm trying to replace the image slider that my Horizon Photography Theme (Nick Haskins) had created.  The Impulse image slider seemed the closest to what I need, but there are problems.
      It seems the the Impulse section for sliding images defaults to the image width, no the height.  I can change the Impulse stage height and width, but this does nothing to the internal content.  For instance, if I change the height to 200 pixels, the image remains the full width and only shows a cropped section.  I would like the ability to change the Impulse height, and have the image height fit space. 
      I've put this custom CSS in, but again, this only controls the stage height of Impulse:
      .pl-sn-impulse .pl-impulse-cell .cell-wrap, .pl-impulse-container, .owl-stage-outer {
        width: 100%;
      }
       
      Any suggestions welcome.  Thanks 
    • Objectif-Mariage
      By Objectif-Mariage+
      Hello. 
      I have just realized that CSS (Less plugin) , is not working..... I have disable all plugins (except PL CUSTOM LESS and PL5) , and ... it's not working ... 
      It's not the first time. Usually I had trouble with a plugin name Autoptimize , but it's Desactivate now , all memory have been purge, and it's still not working! :-/ So it's not from this plugin. 
      NB : When I am logged on my website, if i go on the black wordpress dashboard bar, go on the PL icon, clic on </> LESS/CSS => then the page suddenly apply the CSS .... But As soon that i reload the page, nothing. I think the problem is that the plugin LESS/CSS does not load properly (if I can say that with my simples words).
      I order to keep the site "good looking" I have temporally copy/paste all my LESS code in a plugin : Script n Styles that apply the LESS/CSS code... but it's not a solution for long time.
      Can someone help me ? Did I do something wrong ? Is it an update ? 
       
      my website : https://www.wedding-photography-minneapolis.com
    • Jason
      By Jason+
      Feel free to delete this post if its not helpful or its just plain wrong.
       
      I though it might be useful to share how I customize the size of the builder. (reduce my eyestrain )
      1 - install stylerbot extension in chrome (stylerbot keeps this css every time you access the url)
       
      2- add this css to stylerbot for the site you are working on
      .CodeMirror {
          font-size: 14px;
          height: 600px;
      }
      .pl-workarea.pl-has-sidebar .pl-workarea-sidebar-container {
          right: 0px;
          width: 500px;
      }
      .pl-workarea.pl-has-sidebar .iframe-container {
          right: 500px ;
      }
       
      change sizes to suit.
       
      Cheers.
    • Jason
      By Jason+
      Hi.
      I can't seem to get the Teamwork section to accept custom css. I am trying to change the padding from 7em to 1em on the splash part
      I have tried
        .pl-sn-teamwork .pl-tw-splash {
          padding-top: 1em;
          padding-bottom: 1em;
        }
       
      This works in chrome inspect but when added to custom css nothing happens.
      I have also tried most of the classes I can see accoiated with this section but again nothng seems to happen.
      Any ideas?
×