Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

How to assign a different header for all ‘next’ pages except page 1

$
0
0

Replies: 0

Hi,

I have been working on a custom WordPress theme and there’s one issue I cannot figure out.
On the homepage I show the first few posts from my posts loop. At the bottom of the page I added the WordPress pagination (1 , 2 , 3 , Next).

What I have right now is a hero-image at the top of my homepage (this is page ‘1’ in the pagination) and then comes the main navigation. The hero-image should be on the first page only. For all other pages (2 and higher) I’d like to have this hero-image removed and just show the main navigation.

Any thoughts on how I could do this? I have already succeeded in using different headers for different pages but I don’t know how to assign a specific header for page 1 and another header for all the next pages 2/3/4/5 and so on.


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>