- This topic has 27 replies, 3 voices, and was last updated 3 years, 5 months ago by Ravi Dixit.
-
AuthorPosts
-
November 4, 2020 at 2:10 pm #1518304Ravi Dixit
Hello, GeneratePress team!
When I am choosing full-width by going to Layout>Content Container (see this https://prnt.sc/vdlwsh) this is not working. Instead, it is hurting the default layout also. See this image https://prnt.sc/vdluwt
The default layout of a post is https://prnt.sc/vdlvgi
I have added a code to minimize the post container width to 800px, I guess that is causing the issue.
Here is the code that I am using
.single .inside-article, .comments-area { max-width: 800px; margin: 0 auto; box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.13); } .inside-article { border-radius: 10px; }
But I want to keep the default single post container as it is 800px. But full-width should work as it should be.
Please help with this issue
November 4, 2020 at 4:20 pm #1518392LeoStaffCustomer SupportHi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know 🙂
November 5, 2020 at 12:08 am #1518573Ravi DixitI have shared the URL of the site in the private fields.
Please check
November 5, 2020 at 1:46 am #1518651DavidStaffCustomer SupportHi there,
you can’t have a full width container and then use CSS to limit it to 800px wide.
What exactly are you trying to fix / achieve?November 5, 2020 at 1:54 am #1518657Ravi DixitI want to design a post with the Elementor but when making it full-width, it is not working!
Even when I am choosing Elementor Full Width template.
November 5, 2020 at 2:24 am #1518696DavidStaffCustomer SupportThats because of this CSS:
.single .inside-article, .comments-area { max-width: 800px; margin: 0 auto; box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.13); }
You’re setting the content
max-width: 800px;
That will need to be removed for the page to be displayed full width.November 5, 2020 at 2:30 am #1518703Ravi DixitOkay, I already know this…
Is there any other way I can keep the single post container width same as it is now… And make the full-width work like normal.
Please let me know
November 5, 2020 at 2:34 am #1518706DavidStaffCustomer SupportSorry i am confused. How can it be displayed at 800px and be full width at the same time ?
Are you wanting to make Elementor content stretch the width of the 800px container ie. no padding ?
November 5, 2020 at 2:47 am #1518722Ravi DixitSorry for the confusion…
I want the normal posts which set to default in Layout>Container to have the 800px…
And when I choose the full-width in Layout>Container it should have full width.
November 5, 2020 at 3:32 am #1518759DavidStaffCustomer SupportChange your CSS to:
.single:not(.full-width-content) .inside-article, .single:not(.full-width-content) .comments-area { max-width: 800px; margin: 0 auto; box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.13); } body:not(.full-width-content) .inside-article { border-radius: 10px; }
November 5, 2020 at 9:22 am #1519418Ravi DixitThanks, David!
It worked as I expected, Thanks for your help.
I don’t want to work this particular CSS code when I choose Full-Width
body:not(.full-width-content) .inside-article { border-radius: 10px; }
And also I want to remove the author meta from the full-width template. like by Ravi Dixit
November 5, 2020 at 9:46 am #1519454LeoStaffCustomer SupportI don’t want to work this particular CSS code when I choose Full-Width
That should already be the case as the selector includes
:not(.full-width-content)
Can you link me to the specific page in question?
November 6, 2020 at 12:35 am #1520047Ravi DixitOkay! I got it!
But how can I remove author name from the full-width pages completely?
November 6, 2020 at 2:24 am #1520133Ravi DixitHello, David!
The code you provided above is working excellent but all the comment area is also full-width now, which is good.
But the items added in the bottom of the pages like Facebook section, comment box, author bio etc also stretched. I don’t want this…
I want them to look normal as on other pages… But the page should be full-width, is there any way?
We can also make the comment area 800px(like other pages) and make the background white if there is no other way, but it should be on the full-width pages only, should not affect other pages.
November 6, 2020 at 5:27 am #1520298DavidStaffCustomer SupportWhere can i see a Post with the Full width option enabled ?
-
AuthorPosts
- You must be logged in to reply to this topic.