Page Nav – Embedded Styles
-
I noticed that he page nav added on archive and search pages has embedded styles rather than using styles from a CSS file. Why is this?
I’m specifically talking about function graphene_posts_nav() in theme-loop.php
Just wondering because in my implementation I need to change the this tag to be inline and don’t really want to modify this code.
beren
Admin
Here’s the code for the posts navigation that you referred to:
<div class="post-nav clearfix">
<p class="previous"><a href="URL">Older posts «</a></p>
<p class="next-post"><a href="URL">» Newer posts</a></p>
</div>There is no inline (or embedded) styles there. Only classes which are then styled from the
style.cssfile.Mod
Clearfix: good explanation is here:
Thanks! Good post – on my site the previous and next links for archives and search don’t get displayed properly so I was looking to fix. I was trying to do something quickly by looking at my main site with minification on rather than a dev site. I’ll go back and look there for where to fix this.
I did some more poking around. It seems that when I have the infinite scroll option I – the next and previous options no longer work on the search and archive pages. They are there, but the style is getting set of display:none. Don’t know why…trying to confirm this on a dev box with a clean version of the theme.
Admin
Quote:I did some more poking around. It seems that when I have the infinite scroll option I – the next and previous options no longer work on the search and archive pages. They are there, but the style is getting set of display:none. Don’t know why…trying to confirm this on a dev box with a clean version of the theme.That’s because Infinite Scroll is applied to the search and archive pages as well, not just the home page.
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
