- This topic has 6 replies, 3 voices, and was last updated 3 years, 9 months ago by
Jon.
-
AuthorPosts
-
May 4, 2018 at 2:28 pm #567745
John
Where is the page header slug updated? also, page header body? I’m trying to modify the head on theme and couldn’t find the text. also curious how custom fields are stored or I would just overwrite the h2.
GP Premium 1.6.2May 4, 2018 at 8:36 pm #567905Tom
Lead DeveloperLead DeveloperPage Headers don’t have a slug (you can’t view them like a page or post), and it doesn’t have any post content (it uses a custom field for the content).
The template tag can be used to display custom fields, which are added to the individual pages or posts that the Page Header is applied to.
Let me know if you need more info π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMay 4, 2018 at 9:34 pm #567938John
Thank you, Tom. Maybe I’m being oblivious. I guess I’m still wondering where the h2 text “support your headline” and p text “a simple introduction to your offer” is stored. It appears to be custom fields that are being fed from somewhere.
Big head has:
<h1>{{post_title}}</h1> <h2>{{custom_field.page_header_slug}}</h2> <p>{{custom_field.page_header_body}}</p> <a href="{{custom_field.page_header_url}}" class="button">{{custom_field.page_header_label}}</a>
where are these custom_fields located? Thanks buddy!
May 5, 2018 at 9:35 am #568280Tom
Lead DeveloperLead DeveloperAh, while you’re editing each post or page, look for the “Custom Fields” metabox. If you don’t see it, click the “Screen Options” link at the top right of the page, and make sure “Custom Fields” is checked.
Now you’ll see the Custom Fields metabox, which should contain those values (if they’re set for that page).
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentMay 5, 2018 at 5:41 pm #568537John
OK mind blown. Never noticed that before! I’ve used ACF on my site, but have no idea this functionality was here. What’s plugin is providing this or where is this coming from? I think that’s my last question.
May 5, 2018 at 8:00 pm #568595Tom
Lead DeveloperLead DeveloperThe Custom Fields metabox? It’s a core WordPress feature π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 27, 2019 at 2:34 pm #943306Jon
Wow. Definitely never knew the custom fields were there. Mind blown. Glad to have found the answer right at the source well over a year later π
-
AuthorPosts
- You must be logged in to reply to this topic.