Page title and/or arbitrary text per page, in a sticky header - is it possible?

I now have a global sticky header which is super. There’s some nice usable space in this header. I think it would be nice to be able to put into that space the page title of whatever page is being displayed. That is, to put the current page title into the global (sticky) header. Conceptually, that would be like having a shortcode [page_title], would it not? I don’t think there is such a thing native in WordPress or in Pro, is there? So, failing that, is there a way to achieve the same effect? Bonus points for being able to turn it on or off on a per-page basis.

Related idea:

Is there a way to put a text element (or some other element, I guess) into the Content part of a page, such that:

  1. Part of the content appears in front of the sticky header (so IS NOT affected by sticky header background) - it’s OK if it scrolls out with the content, let’s say.

  2. Other parts of the content appear behind the sticky header (so IS affected by sticky header background when the page is scrolled up that far)

  3. At most, minimal css (no coding) is required to achieve

Can you advise on how (or if) I could achieve either of these ideas, or anything close to them? Negative top margins? Z-factor gymnastics? Other ways?

Any suggestions or ideas would be most appreciated. Thanks.

Hello Frank,

Thanks for the very detailed post information.

[page_title] is not present in the theme and with the default WordPress. If you might be interested to create your own custom shortcode, you can check out this links instead:

Please note that custom coding is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third party developer.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.