Jump to content
Kevan H

Navbar CSS changes not affecting all pages

Recommended Posts

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

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

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

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

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

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

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

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

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

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

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

    • gstrahle
      By gstrahle+
      Hi,
      I am hoping to figure out how I can get my PageLines Full Nav to display layered in front of a sticky footer element on my website - 3keymedia.com
      I would like the Full Nav to overlay the entire screen when opening the menu as you will see when opening on a desktop the footer of nav content is cropped by the sticky footer.
       
      Thanks


    • Christian
      By Christian+
      Hi everyone, since Instagram had allowed to publish in different ratio formats (instead of only square ratio) the grams stripe has different heights. Can you tell me if i can fix it easily with some CSS?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I have noticed that my primary sidebar becomes intermittently invisible when browsing through various blog articles on michaelkummer.com/blog.
      See:
      https://www.dropbox.com/s/z646sgoa3mfjl1j/Screenshot 2018-07-12 15.57.46.jpg?dl=0 and https://www.dropbox.com/s/vdledzzgginvwgv/Screenshot 2018-07-12 15.57.57.jpg?dl=0
      Upon refresh, the sidebar appears. I have been using the following CSS code to hide the sidebar on mobile without any issues. 
      @media only screen and (max-width: 993px) {
      /* hide sidebars */
           .plsb {
              display: none !important;
          }
      }
      I tried to add the following CSS to force the sidebar to show on screens that are wider than 994 pixels but to no avail. Any clue what could be causing this issue?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using the LESS/CSS Pagelines extension and tried to add the following code to make use of FontAwesome:
      a.c2a:before {
          content: "\f07a\00a0";
          font-family: "Font Awesome 5 Pro";
          Font-weight: 900;
          font-style: normal;
          font-weight: normal;
          text-decoration: inherit;
          padding-left: 4px;
      }
       
      The issue is that as soon as I have the CSS via the Custom Styling text box, Pagelines (or the extension) strips out the backslashes (\). As a result, I had to abandon the CSS/LESS extension and instead add all my CSS code to a separate .css file.
      Is there a fix or workaround for this?
      Thanks
      Michael
    • glyph.marketing
      By glyph.marketing+
      Hello, I am having a problem similar to that experienced by Michael Kummer here. We have pages that show this automatic scrolling issue (examples here and here) and it is sufficiently annoying that we have seen customers bounce while trying to convert. Strangely, it only happens at specific resolutions, so it can be difficult to reproduce. In general we can only consistently reproduce it on a 4k resolution with a browser width between 1517 and 1536px. 
      Thanks to Michael Kummer's help we were able to set the overflow-anchor property to none in the entire body, which fixed the issue as far as we can tell, but also obviously disabled scroll anchoring for the whole site. I tried applying it to the specific element that looked like it was being reloaded, which was the PL Meganav extension, but that was unsuccessful. 
      Can anyone help us figure out which element or ID we can apply this property to, so that we can fix the scrolling issue but not disable scroll anchoring for the entire site?
      Thank you - 
      Glyph Language Services
×