Jump to content
Sign in to follow this  
karlhenriklundh

Fullwidth homepage

Recommended Posts

karlhenriklundh

How do I get a fullwidth homepage when the layout settings is set to one right sidebar? I have turned off (hide) the sidebar and set the page to fullwidth in the Meta settings on my homepage. but this does not work. You can view my site here while I try to solve the problem. I use Cart66 for the e-commerce. The site is in Norwegian. http://www.kunstfotogalleriet.no/wordpress/ Regards, Karl Henrik Lundh

Share this post


Link to post
Share on other sites
karlhenriklundh

Yes, I have tried, but this does not work?

Share this post


Link to post
Share on other sites
catrina

Ah, it's already full-width. Did you add widgets to the right sidebar enabled? A sidebar won't show if it's empty.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
karlhenriklundh

I have added widgets to the right sidebar on the default pages (witch the site is based up on), but have set to "Hide primary sidebar" on the homepage. On the other default pages the widgets I have a shopping cart, ads, and newsletter subscription.

Share this post


Link to post
Share on other sites
catrina

To make sure I'm understanding correctly: you want to hide the sidebar on the home page, but you want it to show on all other pages, and this sidebar you added widgets to isn't the primary sidebar?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
karlhenriklundh

Yes, I want to hide the sidebar at the homepage (and clicked on Hide sidebar here and set Meta settings to Fullwidth layout). The primary sidebar is shown on several of the other pages, and here it is perfect with widgets. So there should be no primary sidebar on the homepage but this primary sidebar should show on other pages like this: http://www.kunstfotogalleriet.no/wordpress/kunstutleie/kunstutleiepriser/'>http://www.kunstfotogalleriet.no/wordpress/kunstutleie/kunstutleiepriser/ but on the homepage (http://www.kunstfotogalleriet.no/wordpress/) the image won't place itself to the right side. btw, you are an angel helping me out here :)

Share this post


Link to post
Share on other sites
Jenny

It seems like the amount of menu items you have are stretching the page beyond the width you have set for the content (which is 960px). You can either change the content width at PlatformPro -> Layout Editor to a total width of 1150px (about the width of your current content) or you can add the below code to your custom CSS. I recommend changing it within the Layout Editor for easier changes in the future.

	.fullwidth #pagelines_content #column-wrap, .fullwidth #pagelines_content #column-main, .fullwidth, .fullwidth .wmain, #buddypress-page #container, .fullwidth #buddypress-page #container {
	    width: 1150px;
	}
	


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
karlhenriklundh

simple-mama, I have now pasted in your css in the Pagelines Custom Code section and reduced the number of items in the menu. I also removed the image and inserted it again, but the problem is still the same?

Share this post


Link to post
Share on other sites
kastelic

This is strange, everything should resize correctly based on the width set in Layout editor. Have you tried deactivating all plugins?

Share this post


Link to post
Share on other sites
karlhenriklundh

It's very strange. I tried to deactivate all plugins and remove all widgets, but this did not help. When remove the sidebar completely (site wide) and have only the main content area it works fine, the front image moves almost perfect to the right (app 1 cm from the right margin). Maybe this is something wrong with the code in Pageline. Fullwidth and hide sidebar (on the homepage only) only makes the content in the sidebar invisible.

Share this post


Link to post
Share on other sites
Kate

Not sure what the cause of the "issue" is, (if it actually is one), but please add this in your Custom Code->CSS:

.home .fullwidth #pagelines_content #column-main{width:1150px !important;}
Also, the code that Jenny gave you you placed inside of the body tag... please don't do that. Instead, it should look like this when you're done:
body{}
	.home .fullwidth #pagelines_content #column-main{width:1150px !important;}

Share this post


Link to post
Share on other sites
karlhenriklundh

Kate it looks perfect :) a big thank you to all of you :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×