Archived topic
Relocate page title
4 replies · Started by Philip on November 9, 2021
Hi Guys,
I could use a bit of advice.
On the private sample page linked below, I've relocated the page title using a Block Element with a Dynamic Title Headline, and the before_main_content hook. To make the title align correctly, the Element duplicates the Container with Grid layout that is used in the main page content.
My intent is to apply this layout to most pages (not posts). This seems to work okay on all devices, but I was wondering: Can you think of a more efficient way of doing this?
Thanks.
Phil
-----
Host: WP Engine
Server: Nginx
PHP: 7.4.24
WordPress: 5.8.1
GeneratePress theme: 3.1.0 with starter child theme
GP Premium: 2.1.1
GenerateBlocks: 1.4.0
Hi Philip,
You can try adding the Headline without the Grid block, then set50% margin leftfor the headline block on mobile, 0 margin left on desktop.
Let me know if this works for you.
Nice! Thanks Ying.
One more question:
Do GP Elements, in general, impose any kind of performance hit to page load times?
Phil
No, I don't think so :)
Cool. Thanks again.