[Resolved] Colored container not showing up in WP-Show-Posts

Home Forums Support [Resolved] Colored container not showing up in WP-Show-Posts

Home Forums Support Colored container not showing up in WP-Show-Posts

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2219668
    Bob

    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

    #2219827
    Leo
    Staff
    Customer Support

    Hi there,

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

    #2219834
    Bob

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

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

    #2219841
    Leo
    Staff
    Customer Support

    I believe using a hook would be a better solution:
    https://docs.generatepress.com/article/block-element-hook/

    Also, any reason why you are using WPSP there instead of the default category archives?

    The content should show if you are using the category archives instead.

    #2220002
    Bob

    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

    #2220422
    Leo
    Staff
    Customer Support

    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.

    #2220425
    Bob

    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

    #2220437
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.