Site logo

Archived topic

adding widget area to 3rd paragraph in the single page

51 replies · Started by Patricia on November 18, 2022

Viewing posts 46–52 of 52

HI guys sorry for the delay, I was dealing with security issues...I will test again and will get back to you thank you!

o

Did you get round to testing ?

Hi David Sorry for the delay!

I did another test and it didnt work...I guess it should be better to get code snippet plugin. that could do that for me. I installed WP code plugin which can place things like that between paragraphs but I don't really like how it does not work very well with generateblocks..do you have a suggestion of another plugin similar that will work in conjunction with generateblocks? thanks

HI guys, I'd like to say that this is working now. the problem was that in this line

return prefix_insert_after_paragraph( $inserted_hook, 7, $content );

Where there is 7, it was placing the box right after the box from the 3rd paragraph for some reason. I just had to change as the example below and the content was placed in the right place.

return prefix_insert_after_paragraph( $inserted_hook, 10, $content );

Thank you all :)

I wonder if the content in the 3rd paragraph hook wast getting counted in the 7th paragraph hook :)

Awesome - glad to hear it is now working.

This archived topic is closed to new replies.