The Page Sidebar, which should be drawing on most of the site’s pages is not drawing (the “page you need help with” is just one page, but this is consistent across all pages).
– “Page Sidebar” in the Customizer/Content Options is selected
– All of the pages where the sidebar should be drawing the option is set correctly
A hint:
If I go to the Theme’s Customizer/Content Options
– de-select “Page Sidebar”
– the content of the page fills the width of the screen (there previously is a space for the sidebar)
– select “Page Sidebar”
– the content of the page is narrow again and the sidebar draws correctly
I then “Publish” the change, and then click on “Stories” again in the Nav Bar and the sidebar no longer displays… but the content width is set as if the sidebar is being displayed.
I’ve tried “Purging All Caches” from the W3 plugin, but that isn’t fixing the problem, so there must be some setting in the cacheing that is causing this. I’d really prefer to not disable the plugin, so wondered if you had any idea of what I can do to fix this?
]]>I dont use a Marketpress theme, I use the workality theme which I customized for my whole wordpress site. This theme features all full-width pages among others, but as I mentioned, marketpress falls back to the default-page setting which features a Page-Sidebar.
Thanks.
https://www.ads-software.com/plugins/wordpress-ecommerce/
]]>My website is https://www.rent-orlando-vacation-homes.com and uses the theme Cubismo. The sidebar does not display at all on either my homepage or any posts/subpages and I’m not sure how to resolve the problem (very basic skills here).
Here is the code for the file wp-content/themes/cubismo_theme/sidebar_homepage.php:
<div id="sidebar">
<ul>
<?php
if ( ! function_exists('dynamic_sidebar') || ! dynamic_sidebar('homepage-sidebar') ) :
endif; ?>
</ul>
</div>
And here is the code for another sidebar wp-content/themes/cubismo_theme/sidebar.php:
<div class="four columns omega">
<?php if ( ! dynamic_sidebar( 'right-blog-sidebar' ) ){
function widget_custom_layouts($widget){
return array(
'before_widget' => '<div class="widget widget_cubismo_widget_'.$widget.' clearfix">',
'after_layout' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
);
}
the_widget('Cubismo_Widget_Search',array('title'=>'Search'),widget_custom_layouts('search'));
the_widget('Cubismo_Widget_Categories',array('title'=>'Categories'),widget_custom_layouts('categories'));
the_widget('Cubismo_Widget_Tag_Cloud',array('title'=>'Tags'),widget_custom_layouts('tag_cloud'));
}
?>
</div>
I also tried to manually create a sidebar with no luck wp-content/themes/cubismo_theme/inc/sidebar.php:
<?php
register_sidebar(array(
'name' => 'Right Sidebar',
'id' => 'right-blog-sidebar',
'description' => 'Widgets in this area will be shown on the right-hand side.',
'before_widget' => '<div class="widget %2$s clearfix">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
register_sidebar(array(
'name' => 'Footer Left Sidebar',
'id' => 'footer-left-sidebar',
'description' => 'Widgets in this area will be shown on the footer left.' ,
'before_widget' => '<div class="%2$s" style="margin: 10px 0px;">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => 'Footer Center Sidebar',
'id' => 'footer-center-sidebar',
'description' => 'Widgets in this area will be shown on the footer center.',
'before_widget' => '<div class="%2$s" style="margin: 10px 0px;">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => 'Footer Right Sidebar',
'id' => 'footer-right-sidebar',
'description' => 'Widgets in this area will be shown on the footer right.' ,
'before_widget' => '<div class="%2$s" style="margin: 10px 0px;">',
'after_widget' => '</div>',
'before_title' => '<h1>',
'after_title' => '</h1>'
));
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => 'Homepage Sidebar',
'id' => 'homepage-sidebar',
'description' => 'Appears as the sidebar on the custom homepage',
'before_widget' => '<div style="height: 280px"></div><li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));
}
Any help anyone can provide to allow my widgets to appear in my homepage or post/subpage sidebars would be very greatly appreciated! If you need other code or information to help resolve the issue please advise.
Thank you!
]]>I don’t want a sidebar on a particular page. I found several methods to have the sidebar not show, but the space for the sidebar is not recovered. As shown here for now—won’t be any good once fixed.
I looked at page.php and can see the page format is back somewhere else. At the moment I’m using “A Dream to Host” theme. Before I mess up the whole site, can someone point me to solution?
TIA
]]>