[Resolved] Sidebar per category and posts within that category

Home Forums Support [Resolved] Sidebar per category and posts within that category

Home Forums Support Sidebar per category and posts within that category

  • This topic has 7 replies, 2 voices, and was last updated 5 months ago by Fernando.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2150316
    Liam

    Hi there,

    I’d like to create a sidebar – with widgets – which shows on specific category pages and posts which are within that category.

    For example, if I have an email marketing category, I would like the email marketing category page and all posts within it to show a sidebar with widgets offing an email marketing newsletter signup, etc.

    Is there anywhere you can point me to which describes how to set this up?

    Thanks.

    #2150322
    Fernando
    Customer Support

    Hi Liam,

    One approach you can do is to set a Layout Element making the sidebar visible for your preferred locations.

    See: https://docs.generatepress.com/article/layout-element-overview/

    Then, you can use either a Hook Element or a Block Element to add your email marketing newsletter signup and other Blocks.

    See: https://share.getcloudapp.com/nOuRwvEk

    Also see: https://share.getcloudapp.com/X6uErlWy

    Here is a sample video where a Block Element is used to add Blocks to the sidebar: https://www.youtube.com/watch?v=1E7zFl678kg

    Hope this helps! 🙂

    #2150323
    Liam

    Cool. Thanks, Fernando. Will take a look.

    #2150325
    Fernando
    Customer Support

    You’re welcome Liam! Feel free to reach out if you’ll need further assistance with regards to this!

    #2150450
    Liam

    Hi Fernando,

    Just one more question on this. Is it also possible to create a sidebar per specific post?

    For example, I would like to create a sticky widget called “Mentioned in this post” which keeps affiliate links omnipresent as the user scrolls. The affiliate links would be specific to a post so the widget would have to have a one-to-one relationship with a post.

    Thanks.

    #2150481
    Fernando
    Customer Support

    Yes, if you use an Element to add this functionality to the sidebar, or add it as a Widget, this should be possible but the effectivity/functionality of this would be reliant on the custom code or plugin you’ll be using. 🙂

    #2153806
    Liam

    Cool, thanks Fernando ✌️

    #2154676
    Fernando
    Customer Support

    You’re welcome Liam! Glad to be of assistance! 🙂

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