I’d like it to be fulllwidth centered, is that possible? Thanks.
]]>I have researched many ways to lower my sidebar on my home page, but as soon as I lower it, the other sidebars on the other pages are lowered as well.
How could I lower the homepage sidebar only? I’m still a beginner in coding, so I don’t know where exactly to insert coding and if I insert CSS on the additional css or custom css, normally nothing happens.
]]>This is only happening on the homepage and all other pages display correctly. I’ve tried searching the forums and have so far tried the following none of which have worked:
1. Selected wordpress to correct invalid nested Xhtml
2. Checked for missing / extra Div
3. Checked all images to see if any are too wide
4. Changed the page so it’s no longer a static home page – This fixed the issue.
As #4 fixed the issue I think it’s something to do with the homepage configuration but not sure where to go form here.
Is anyone able to help?
]]>The sidebar on this website – https://stephaniejoanne.com/
randomly dropped to below the posts on the homepage, on the other pages the side bar is fine. so i’m guessing its some coding on the home page that magically changed. The client said all they did was add a new post and it moved down. so who knows what happened. i deleted the post but its still below. I checked the main page index file for any open or unclosed div tags but couldnt find any.
anyone have any suggestions?
]]>randomly dropped to below the posts on the homepage, on the other pages the side bar is fine. so i’m guessing its some coding on the home page that magically changed. The client said all they did was add a new post and it moved down. so who knows what happened. i deleted the post but its still below. I checked the main page index file for any open or unclosed div tags but couldnt find any.
anyone have any suggestions?
]]>I recently found a tutorial that assisted me in creating a new homepage sidebar php file in order to add a sidebar to my static homepage. I registered the new sidebar, and I am now able to drag widgets to it. It is also visible on the homepage, but it is a staggered mess rather than a streamlined horizontal row.
The php file (with internal styling) is as follows:
<style>
#sidebar {
bottom:0;
width:100%;
height:350px;
}
#sidebar li {
list-style-type:none;
float:right;
padding-left:30px
padding-right:30px
width:260px;
}
</style>
<div id=”sidebar”>
<?php
if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘homepage-sidebar’) ) :
endif; ?>
</div>
What am I doing wrong? I’m in the process of reading a ton of CSS literature and I can’t quite seem to identify what went wrong. I also tried verifying the files on wc3 and it seems I’ve split elements in the wrong places…If you can give me a hint, that would be lovely, or even direct me to some additional literature.
The blog I need help with is salvagescheme.com.
]]>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!
]]>