Site logo

Archived topic

Using two sidebars to pull in different pages

15 replies · Started by carlmumford on April 12, 2017

Viewing posts 1–15 of 16

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!

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.

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/

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.

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.

Scrap above post. I used:

rgba(0,0,0,0.6)

:)

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.

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.

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

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;

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

Very odd, mine doesn't display right.

Layout

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?

This archived topic is closed to new replies.