Site logo

Archived topic

title when using sections

3 replies · Started by Nikolaj on April 19, 2019

Viewing posts 1–4 of 4

dear Tom,
2 questions;

1. Is there a way to have the page title shown when using the sections function? It seems to disappear when using sections?

2. How to have a featured image being 100% of browser window despite of the page max-width?

Have a pleasant day...

Nik

Hi there,

1. Sections removes the entry header where the title is displayed. Where would you want the title to be displayed? Above the first section or over the featured image ( see point 2 )

2. You can see a full with Featured Image using the Header Element, it also allows you to add the Post Title using the {{post_title}} template tag:

https://docs.generatepress.com/article/header-element-overview/

Template tags:

https://docs.generatepress.com/article/header-element-template-tags/

thanks but not exactly what I was thinking; I just want to be able to show the title below the featured image and want the featured to be 100% according to browser window;

Should I add the title to any template or?

Nik

Using the header element module should be the way to go.

You can add this as content:

<div>{{custom_field._thumbnail_id}}</div>
<h1>{{post_title}}</h1>>

And set the container to fullwidth.

Keep in mind that your featured images need to be wide enough (2000+px) to show as full width in most browsers.

This archived topic is closed to new replies.