Site logo

Archived topic

Archive pages are appearing wrong

15 replies · Started by Matthew on November 20, 2018

Viewing posts 1–15 of 16

Hi,

Can't figure out why archive pages are doing this, the archive heading and description are in a white box but then the content seems to go out of this white container box.

Any ideas as to why this might be happening?

Thanks.

Hi there,

It seems like the template displaying the archive is missing some core GP HTML elements which add the background color and padding.

It would be best to adjust the templates to have the same HTML markup as GP, or you can do this:

.term-renewed-tv-shows #main {
    background: #fff;
    padding: 40px;
}

Hi Tom

Right OK, I can see CSS on these custom templates but I am unsure what I should set?

What is the HTML markup GP normally adds that I should add to these?

Ideally I would like to add something universal across all these, not specific to each archive page if that makes sense?

Thanks.

Hey Tom

So I decided to use:

#main {
    background: #fff;
}

Across pages but for some reason when the screen size is resized to smaller say tablet or mobile size the white background vanishes and it turns grey again?

Any ideas why?

I'm not seeing that - can you try clearing your browser cache?

If that doesn't help, can you show me a screenshot of what you're seeing?

Looks like this has done the trick Tom! Thanks :)

You're welcome :)

Hey Tom,

I can't figure out why this is not working on the search results archive page:

http://beta.ukairdates.com/?s=test

Any ideas why it's not working? Seems to work everywhere else.

Hmm, you could try this instead:

#main:after {
    content: "";
    display: table;
    clear: both;
}

Great that fixed it :)

Awesome :)

Hey Tom,

Hope you are well.

Realised this only solved the issue if there are results, for some reason if there are not any results the content breaks out the white container again.

Example: http://beta.ukairdates.com/?s=fjuerjg8rjf9o

Any idea why?

This archived topic is closed to new replies.