Site logo

Archived topic

How to add post summary box?

5 replies · Started by Nitin on May 24, 2021

Viewing posts 1–6 of 6

I want to add a post summary box with a CTA button in the header area. The button is a sales button that should point to different products in different posts.

Hi Nitin,

To clarify: Are you trying to add it beside the nav menu? or are you trying to add it into the Hero section?

How did you create the summary box and the CTA button?

If it's created from a plugin with a shortcode, you can use the shortcode and place it on Header Widget area if you want it beside the menu items. You can place the shortcode within a Header Element as well if you intend to use one.

You can also use Shortcode Blocks within Gutenberg editor if you must.

I want it in the page hero section just below the title. I am using GenerateBlocks and used dynamic content to show post excerpts. But, I usually write product reviews, so want a button with the affiliate links of products.
I want it in the way shown in the screenshot below-
https://nimb.ws/Hymvjq

Hi there,

you would need to add Custom Fields for each to each of the posts where you want it displayed - you can use the core WP ones:

https://wordpress.org/support/article/custom-fields/

Or a plugin like ACF or Metabox.

Create a field for the button label, and the button URL.
In the block element you can use the Dynamic Text/Link Type: Post Meta - and add the Name of the Custom Field you require.

Okay, thank you.

You're welcome

This archived topic is closed to new replies.