Home › Forums › Support › Add Page Title in Page Header This topic has 15 replies, 4 voices, and was last updated 3 years, 7 months ago by Fernando. Viewing 15 posts - 1 through 15 (of 16 total) 1 2 → Author Posts November 17, 2016 at 6:48 am #245153 Lynn Leon I would like to add a page title in a page Header dynamically. I’m not an expert. Can somebody help me? Thank you Lyn November 17, 2016 at 9:05 am #245211 TomLead Developer Lead Developer How are you adding the page header? Manually on each page? November 17, 2016 at 12:41 pm #245309 Lynn Leon yes Im adding page header. My question is there some shortcode o code to add page title. Thank you http://www.elmiamipress.com/sample-page/ November 17, 2016 at 1:04 pm #245321 TomLead Developer Lead Developer You could create a shortcode which will output the page title: add_shortcode( 'page_title','tu_page_title_shortcode' ); function tu_page_title_shortcode() { return get_the_title(); } Then you could use it as: [page_title] November 17, 2016 at 2:11 pm #245340 Lynn Leon Thank you Tomy. Lyn Leon November 17, 2016 at 10:18 pm #245429 TomLead Developer Lead Developer You’re welcome 🙂 December 26, 2021 at 8:54 pm #2060194 Adam Geez, why not for title just implement a simple shortcode December 27, 2021 at 2:19 am #2060345 DavidStaff Customer Support Hi there, the latest version of WP provides a Post Title Block…. a lot has changed since this 5 year old topic 🙂 August 10, 2022 at 11:20 pm #2309527 Kar Yung Hey David, That’s still not the same as Page Title right? What’s the best current way to be able to style a page title of a category archive page? I would like to be able to add it inside of a container if possible. August 10, 2022 at 11:27 pm #2309530 Fernando Customer Support Hi Kar, You can use a GenerateBlocks Headline Block. You can retrieve the Page/Post title with that through its Dynamic Settings: https://docs.generateblocks.com/article/headline-overview/#dynamic-data August 10, 2022 at 11:34 pm #2309539 Kar Yung Thanks for the quick reply Fernando. I did a quick test. https://magic.facetofacegames.com/category/modern/ It just seems to grab the post title of my first post here. August 10, 2022 at 11:43 pm #2309549 Fernando Customer Support Try adding it through the Dynamic setting in the toolbar. Example: https://share.getcloudapp.com/jkuXxm4O August 11, 2022 at 12:00 am #2309576 Kar Yung Wrong link? Example refers to this page. August 11, 2022 at 12:03 am #2309579 Fernando Customer Support Sorry about that. I corrected it now. August 11, 2022 at 12:05 am #2309582 Kar Yung Can confirm it works but now I want to at least understand why for future use? Author Posts Viewing 15 posts - 1 through 15 (of 16 total) 1 2 → You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In