Full width — removing sidebars
-
I’d like to keep the top navigation bar, but eliminate all the sidebars. How would one accomplish that?
-
You can add this to your functions.php template
/* remove parent sidebars */ function aquatify_remove_fourteen_sidebars() { unregister_sidebar( 'sidebar-1' ); // primary on left unregister_sidebar( 'sidebar-2' ); // secondary on right } add_action( 'widgets_init', 'aquatify_remove_fourteen_sidebars', 11 );You can see my page, which removes the primary sidebar, http://pcode.petehouston.com/
I must be at a loss, because I’ve copied functions.php into my child folder, edited it, but nothing is happening!
In addition, I can’t even see functions.php from the editor inside of WordPress, so I edited it via FTP and uploaded it that way. I know it’s in the child folder, it’s just not showing up.
I have a plugin that does just that and then some more…
http://wordpress.org/plugins/fourteen-extended/Try it and let me know if it helps.
Don’t lots of plugins slow a site down?
Not necessarily – it all depends on how heavy the plugins are.
You could just grab the code out of the plugin and use that if you wish 😉
Not all plugins slow down a site, however it’s another layer that you need to maintain and make sure is working with each update.
@joshuamunoz
“Do not copy the full content of functions.php of the parent theme into functions.php in the child theme.”
See codex.
And I always choose code over plugin.when you have sites, you can set this in the options to “full site” except of standardtemplate! thats functionality in original-fourteen theme.
What might be the best way to make the content for a single page full width? I need to embed a message board forum on a page.
I’ve got the Fourteen Extended plug installed and have selected “full width page” template for the one page. The sidebars are gone but the content for the page is still narrow.
It looks like this tutorial is what I need:
http://premium.wpmudev.org/blog/create-a-full-width-page-for-wordpress-in-5-simple-steps/Or is there a better/easier way?
@griff – at the bottom of the edit screen is the option “Set Page To True Full-width?”, does that not work?
How can one remove the sidebar(s) only on a certain page (home page)?
thanks
The solution was posted to a similar thread: http://wordpress.org/support/topic/remove-left-sidebar
@gabstero If you want to strip your home page of the sidebar, find dsalon’s comment in the thread I linked above, and put “.home ” before all the CSS rules, like so:
@media screen and (min-width: 783px) { .home .primary-navigation { float: right; margin-left: 20px; } }Thanks much @emilytk !!
worked! cheers!
The topic ‘Full width — removing sidebars’ is closed to new replies.
