Site logo

Archived topic

Header Element different one for the first page of Category archive only?

23 replies · Started by nomadiceman on July 18, 2021

Viewing posts 16–24 of 24

I maybe should have explained that I have a different header element for each of my category archives already

I maybe should have explained that I have a different header element for each of my category archives already

Ah i saw this late.

If this is the case then you may have to specify this on the condition.

Any ideas how to do that?

By adding the is_category() to the condition specifying the category.

Example:

if ( 10 === $element_id && !is_paged() && is_category('news') )

Ok great. Thank you very much for your help

Have you sorted it out? Let me know if you need further help with it. :D

Awesome. It seems to work great thank you

Nice one. Glad you got it sorted. :D

This archived topic is closed to new replies.