[Resolved] Using two sidebars to pull in different pages

Home Forums Support Using two sidebars to pull in different pages

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #304953
    carlmumford

    Hello, for the life of me I can’t get my head around php hooks if that’s what I am meant to be using to pull different pages of my site.

    I want a 3 column layout so I have Content / Sidebar / Sidebar.

    Is there a way of pulling, just say my about me page in to side bar 1? and the same for a different page for sidebar 2?

    Thanks!

    GeneratePress 1.3.46
    GP Premium 1.2.96
    #304956
    carlmumford

    Also,

    How can I make the individual blog posts contained rather than full width?

    Thanks

    http://samdivinefan.com/album-releases/franky-rizardo-house-album-now-available/

    #304957
    carlmumford

    Sorry, I don’t visit often! One final question.

    http://samdivinefan.com/?s=example+search

    As you can see the content is aligned to the left without any padding. Does this need custom CSS to edit as I don’t see any option to add padding.

    #304987
    Leo
    Staff
    Customer Support

    Hi Carl,

    – Not sure what you meant by pulling the page into sidebar? Like have a link to another page?
    If not can you provide an example?

    – That blog post is already contained? If you are looking to push the text in more than try changing the Content Padding in Custozmier > Layout > Container

    – Try this CSS:

    .one-container .inside-article {
        padding: 0 40px;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #305031
    carlmumford

    Hi Leo, that’s great thanks.

    Sorry I didn’t explain my first point very well. I meant is it possible to hook e.g. my contact page in to a sidebar? Instead of a widget. Any content on one page shows in one of the sidebars. Does that make sense?

    Whilst I am here; do you have any suggestions for code for putting a background around all content and making the opacity of the background 30% (ish) so that the white text sits better over my colourful background.

    #305034
    carlmumford

    When I try to use

    .one-container .inside-article {
        padding: 0 40px;
    }

    If you view it on an iPhone you’ll see that the news section has extra padding. How do I specify for mobile? Sorry for questions. Thanks.

    #305035
    carlmumford

    Scrap above post. I used:

    rgba(0,0,0,0.6)

    🙂

    #305039
    carlmumford

    Sorry this is what I meant, if you search something random in the search tool e.g. ‘fdusifhsdiufhsdiufhdsiufhs’

    Look at how the content is returned in the middle where it says not found. It’s aligned left and I’m not sure where that property is coming from.

    #305065
    Tom
    Lead Developer
    Lead Developer

    Did some searching and came up with these plugins:
    https://wordpress.org/plugins/page-in-widget/
    https://wordpress.org/plugins/content-widget/

    One of them might help you achieve displays a page in one of your widgets 🙂

    #305109
    carlmumford

    Thanks for taking the time to search for those Tom.

    Sorry I’m having a brain fart moment here. My article content padding is 0 and it’s apparently being generated by GeneratePress. I can’t find the setting!

    http://samdivinefan.com/

    Look at the homepage box on the left. I’m puzzled.

    #305136
    Leo
    Staff
    Customer Support

    Sorry what is the issue on that page? I see 20px padding around the container.

    #305140
    carlmumford

    Not sure why it’s not at the bottom. The padding is there because it is in custom CSS, but does not overridden when I use padding-bottom: 20px;

    #305144
    Leo
    Staff
    Customer Support

    Sorry what is not at the bottom? I see 20px padding at all side right now.

    You should be able to adjust the padding on the container of that page using Customizer > Layout > Container > Content Padding

    #305146
    carlmumford

    Very odd, mine doesn’t display right.

    Layout

    #305149
    Leo
    Staff
    Customer Support

    Ahh we were talking about different padding.

    The bottom padding is getting overwritten by this:

    .one-container.page .inside-article {
        padding-bottom: 0;
    }

    Can you try clear or disable your caching plugin?

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