remove content side bar
-
want to remove content side bar from all the inner page using maximum area for text and product images
-
don’t add any widgets into the ‘content sidebar’ widget area.
this should automatically remove the ‘content’ sidebar and stretch the content to full width.already drag the widget(text message) to remove from content sidebar but it keep their setting.
How we remove setting and use 100% text area and products in product page?
visit our website http://www.greenearthexport.comgreenearthexport: Stylesheet (style.css)
Select theme to edit: Select
/*
Theme Name: greenearthexport
Theme URI: https://wordpress.org/themes/twentyfourteen/
Author: the WordPress team
Author URI: https://wordpress.org/greenearthexport: RTL Stylesheet (rtl.css)
Select theme to edit: Select/*
Theme Name: Twenty Fourteen
Description: Adds support for languages written in a Right To Left (RTL) direction.
It’s easy, just a matter of overwriting all the horizontal positioning attributes
of your CSS stylesheet in a separate stylesheet file named rtl.css.See http://codex.wordpress.org/Right_to_Left_Language_Support
*/
greenearthexport: sidebar-content.php
Select theme to edit: Select
<?php
/**
* The Content Sidebar
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/if ( ! is_active_sidebar(‘sidebar-2’) ) {
return;
}
?>
<div id=”content-sidebar” class=”content-sidebar widget-area” role=”complementary”>
<?php dynamic_sidebar(‘sidebar-2’); ?>
</div><!– #content-sidebar –>our website inner page is in Default option
Edit Themes
greenearthexport: RTL Stylesheet (rtl.css)
Select theme to edit: Select/**
* 7.2 Content Sidebar Widgets
* —————————————————————————–
*/.content-sidebar .widget li > ol,
.content-sidebar .widget li > ul {
margin-right: 18px;
margin-left: auto;
}.content-sidebar .widget_twentyfourteen_ephemera .widget-title:before {
margin: -1px 0 0 18px;
}Edit Themes
greenearthexport: Sidebar (sidebar.php)
<?php
/**
* The Sidebar containing the main widget area
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
?>
<div id=”secondary”>
<?php
$description = get_bloginfo( ‘description’, ‘display’ );
if ( ! empty ( $description ) ) :
?>
<h2 class=”site-description”><?php echo esc_html( $description ); ?></h2>
<?php endif; ?><?php if ( has_nav_menu( ‘secondary’ ) ) : ?>
<nav role=”navigation” class=”navigation site-navigation secondary-navigation”>
<?php wp_nav_menu( array( ‘theme_location’ => ‘secondary’ ) ); ?>
</nav>
<?php endif; ?><?php if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?>
<div id=”primary-sidebar” class=”primary-sidebar widget-area” role=”complementary”>
<?php dynamic_sidebar( ‘sidebar-1’ ); ?>
</div><!– #primary-sidebar –>
<?php endif; ?>
</div><!– #secondary –>I need help removing the content sidebar from ‘my blog’ page. Are you able to assist? I am running Willow Theme.
I want it so that my text spreads across the entire page. Please see example – http://www.stempdigital.com.au/tasmania-photo-essay-road-trip/
-
This reply was modified 9 years, 7 months ago by
leonvanmegen.
-
This reply was modified 9 years, 7 months ago by
The topic ‘remove content side bar’ is closed to new replies.
