Site logo

Archived topic

Want to show my block inside content.

1 reply · Started by John on September 23, 2021

Viewing posts 1–2 of 2

Hello

I have created a block element using generateblocks.

Now I want to show it inside my content (Suppose after 2 or 3 paragraphs).

I don't want to use reusable block features.

Is there any way that I can show it in the middle of the content?

This is my created block https://prnt.sc/1td5ubs

Currently using generate_before_content Hook.

Hi there,

There isn't an official way to do this as hooks don't exist inside the content.

David has a workaround solution here that might be worth a shot: https://generatepress.com/forums/topic/hook/

We can't promise that it won't create some unforeseen issues though.

This archived topic is closed to new replies.