Site logo

Archived topic

Colored container not showing up in WP-Show-Posts

7 replies · Started by Bob on May 14, 2022

Viewing posts 1–8 of 8

Hello,

In an effort to drive social engagement, at the end of all my blog posts on https://goyhydrology.org I am adding a "color container" that includes (1) "Share with friend," (2) [shared_counts] shortcode, and (3) a fund blurb. What really makes all three jump out for the viewer are the color-coded (i.e. teal) container all three are boxed together in.

While the above "colored container" works great on my main blog roll, I noticed that in my WP-Show-Post pages (https://gohydrology.org/cultural/ for example), that "colored containers" do not show up at all, but rather just appear with a white background (not teal).

Is there a way to make the "colored container" show up in WP-Show-Posts?

And if not, will the new version of Generate Blocks allow colored containers?

Thank you,

Bob

Hi there,

How are these colored containers added currently? Inside the actual post content?

Yes, I'm adding the containers inside the individual blog posts.

Container (parent)
- Share with a friend (text)
- [shared_counts] (short code)
- Tidbit (text)

Thanks Leo. I'll take a look at the hooks. So it sounds like WPSP doesn't read (or see) the container?

The reason I was using WPSP is that (1) I liked the cleaner URL structure and (2) it allowed me to add "intro content" to the top of the page, and then add the WPSP posts below.

Do you recommend that I just use the tag and category structure native to WordPress, or is my approach good? I was also wondering in the hooks, if I can change content (i.e. the "tidbit" changes each time), or is each hook static in terms of content.

Thank you, Bob

The reason I was using WPSP is that (1) I liked the cleaner URL structure and (2) it allowed me to add “intro content” to the top of the page, and then add the WPSP posts below.

You should be able to set the URL to whatever you want using the permalink settings:
https://wordpress.org/support/article/settings-permalinks-screen/

Intro content can be added using a hook:
https://docs.generatepress.com/article/block-element-hook/

Do you recommend that I just use the tag and category structure native to WordPress

Absolutely.

Thank you Leo!!!

I will embark down that path, although it may take a little bit of a rethink. The advantage is that I think it may both simplify and speed up my site, and my ability to adapt it on the fly. While I liked WPSP, I felt like I was putting an inordinate amount of time to slightly improve something that is more intrinsically and elegantly handled by just using categories and tags.

Or if you have any other helpful hints, I'll marked this resolved.

Thanks so much for you help!

Bob

No problem :)

This archived topic is closed to new replies.