Portfolio Single Item: No Container please

Hi,

I have followed numerous threads on this forum, and unfortunately none seem to able to help me with the issue I’m facing.

Just like many others here, we would like to create portfolio (and blog pages) which look similar to our normal pages on our X-website, meaning: blank - no container, header, footer.

We understand this happens on x-child level, and we have tried certain suggestions, but none seem to work for us. Trouble is, I don’t know php very well, so the only thing I can do is copy pasting suggestions from the forum in my own files, into the child theme.

I would like a step by step guide, to solve the issue, if possible. Surely many other people will benefit from this. Thanks!

Hi There,

Thank you for writing in, please add this to Theme Options > CSS

/*remove all the margins/contianer from portfolio posts*/
.single-x-portfolio .entry-extra,
.single-x-portfolio .entry-featured {
	display: none;
}
.single-x-portfolio .x-container.offset{
	width: 100%;
	max-width: none;
	margin-top: 0;
	margin-bottom: 0;
}
.single-x-portfolio .entry-content {
	margin-top: 0;
}

Hope it helps,
Cheers!

2 Likes

Hi Team,

Fabulous, that did the job!

So, in summary,

  1. to create this, you can simply doing it with CSS only?
  2. would it be as simple to change the term portfolio into blog, to create the same outcome for blog articles?

Thanks!

Hi There,

For single post please use .single-post instead of .single-x-portfolio.

Hope this helps!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.