Site logo

Archived topic

Post titles H2 TO H4 on search results

12 replies · Started by Aamir on July 27, 2022

Viewing posts 1–13 of 13

I want to change the post titles from h2 to h4 on search results. Please guide.

Hi Aamir,

You can create a block element - content template and assign it to the search result page.

In the content template, you can use H4 as the entry title.

How to assign that content template to the search result page.

Hi there,

in the Block Element - Content Template, set the Display Rules > Location to: Search Results

I don't see any display rule option for Block Element - Content template!!

I am using the wp show post plugin on the block element. Please check out the screenshot.

But in the front end, the columns are repeated. Please check the URL -

You can't add the WP Show Posts shortcode inside the Block Element - Content Template.
As you're outputting the WP Show Posts Loop inside the Theme Loop. Which is why you see it repeating.

In the Block Element Content Template you simply design the template for the individual post.
Do you have the GenerateBLocks plugin installed ?

Yes, I have the GenerateBlocks plugin. Then how can I use the content block plugin to create my search page? Please guide. :-/

I used a template, and it worked! But the issue is that the featured images are not of the same size.

Replace the GP image block with a GenerateBlocks Image Block.
You can then set its Height and apply Object Fit Cover. See here ( i also included the dynamic data settings ):

https://www.screencast.com/t/PgAigsY3J

Thank You

You're welcome

This archived topic is closed to new replies.