Site logo

Archived topic

How to selectively display Post Titles in Abstract theme

3 replies · Started by Martin on January 27, 2021

Viewing posts 1–4 of 4

Hi,
I'm using the Abstract theme which does not display the post title by default. I would like to selectively display the post title on certain categories of posts.I've created an element with the following code
<?php echo '<h1>' . get_the_title() . '</h1>';
and applied it to the generate_before_content hook, but I get a critical error when i publish the element.

What should I do instead please? Also i'm curious to know how the post titles have been hidden in this theme.

Many thanks for your help.

Hi there,

What should I do instead please? Also i’m curious to know how the post titles have been hidden in this theme.

Go to Appearance > Elements. By default, Abstract site template adds in a Layout Element labeled "GenerateBlocks Pages".

This Layout element disables the content title through its Disable Elements tab. If you check its Disabled elements tab, you'd see "Content Title" checked.

On its display rule tab, you'd see this setting: https://share.getcloudapp.com/d5uwlzb6

If you want more pages to have their titles hidden, you can add them on its display rule. If you want the page title to should up, make sure the page is not included on the display rule location. :)

I get it. Fantastic support. Thanks Elvin

No problem. :)

This archived topic is closed to new replies.