prev and next arrows
-
How does one copy the navigation ARROWS used for previous and next posts? I am just looking for a way to manually add the arrows and have already manually added the links.
I want to use the same kind of arrows on the second page below as are on the first.
1. POST: https://game-of-thrones-episodes.com/2017/07/31/jon-snow-arrives-at-dragonstone/
2. PAGE: https://game-of-thrones-episodes.com/703-the-queens-justice/Thanks
The blog I need help with is: (visible only to logged in users)
-
Here are the two spans which you can use with the links you have manually created.
<span class="meta-nav">←</span><span class="meta-nav">→</span> -
That works great. I am just curious. Why have the span class, and not just insert the arrows, what does the “meta-nav” do? It look like the arrows are different sizes above, but on the page they look the same. Why is that?
Thanks for your help.
-
That works great. I am just curious. Why have the span class, and not just insert the arrows, what does the “meta-nav” do? It look like the arrows are different sizes above, but on the page they look the same. Why is that?
Thanks for your help.
-
-
Okay, I am making progress on this. Initially, when I inserted the spans I did it this way
<span class=”meta-nav”>← </span>Episode 705
But really, I should do it this way, right?
<span class=”meta-nav”>← Episode 705</span>
Now, if I am learning this right, is there CSS selectors which go with this meta-nav tag? I noticed that the automatic ones are all capitalized, so why isn’t what I have inside the span above not capitalized on the page?
-
Although the span has a CSS class, there isn’t any actual CSS to go with it, but if you wished, you could style that arrow and the text differently simply by adding the CSS rule with your styling.
-
ooooh, let me try that…I will check back with you and let you know if I was able to do it myself. Thanks. Give me about 5 minutes.
-
okay, I need help… this is what I wrote, but it appears to have no effect.
.meta-nav {
text-transform: capitalize;
} -
Could you link me to a page where you’ve added your new navigation element so I can take a look directly?
-
Thanks! Your navigation appears to be displaying as expected.
The “capitalize” property capitalizes the first letter of each word, so “Episode 705” and “Episode 707” are what I’d expect to see. If you’d like to change that to all capital letters, then this should do the trick instead:
.meta-nav { text-transform: uppercase; } -
- The topic ‘prev and next arrows’ is closed to new replies.