Site logo

Archived topic

How to create Blog Page Header image and display it in single posts and wc

1 reply · Started by Simon on May 30, 2017

Viewing posts 1–2 of 2

Hi Tom,

I have a question about Blog Page Header Image.

Currently my header image says "BLOG", but one problem with that is the SIZE of the font.

How do I change the font size for that?

Secondly, how do I show the same header on single posts?

Lastly, can I create a specific Header Image for Woo Shop, Single Product, and Checkout Page?

Cheers,
Simon

Hi there,

1. I assume you entered the text blog in the page header content? If so you can wrap it in span and give it some styles:
<span style="font-size: 20px">BLOG</span>

2. This should help: https://docs.generatepress.com/article/blog-page-header/#displaying-the-blog-page-header-elsewhere

You need the is_single selector for single posts: https://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page

3. I think currently you have to use GP hooks for that. Will ask Tom to confirm.

This archived topic is closed to new replies.