Troubleshooting Common Twenty Sixteen Sidebar Issues: From Missing Widgets to Mobile Layouts
Content
The Twenty Sixteen theme is a popular and flexible WordPress theme, but users often encounter challenges when customizing its sidebar and widget areas. Based on common community reports, this guide addresses the most frequent sidebar-related problems and their solutions.
1. Sidebar or Widgets Not Appearing
A frequent issue is widgets or entire sidebars not displaying on the front end. This can happen for several reasons:
- Widget Not Saved: Always remember to click the 'Save' or 'Update' button after adding or modifying a widget in the Appearance → Widgets admin screen.
- Browser Cache: A stale browser cache can show an old version of your site. Clear your browser's cache and history to see if the widgets appear.
- Page Template Restrictions: Some widget areas, like 'Content Bottom 1 & 2', are designed not to appear on the blog posts index page if it is set as the homepage. They will only display on static pages and single posts.
- Child Theme Conflicts: If you recently updated the theme and use a child theme, the update may have introduced changes that conflict with your child theme's templates. Review your child theme's template files (especially sidebar.php) to ensure they are correctly calling only the intended sidebars.
2. Sidebar Layout and Display Problems on Mobile
The default Twenty Sixteen design moves the sidebar below the main content on mobile screens. If your sidebar is displaying incorrectly on mobile, perhaps appearing in a narrow desktop-like layout, it is often due to CSS conflicts.
- Legacy Theme Code: As one user discovered, residual CSS from a previously used theme can interfere with Twenty Sixteen's responsive design. The best solution is to ensure you are using a clean, unmodified set of Twenty Sixteen templates in a child theme and add only your customizations there.
- Custom CSS: To force the mobile layout, you may need to inspect your site's CSS using browser tools and override any conflicting styles in your child theme's style.css file.
3. Customizing Widget Behavior and Appearance
Many users want to change how widgets function or look.
- Number of Posts in a List: Widgets like 'Latest Posts' include a setting within the widget itself in the Dashboard to control the 'Number of items' to display.
- Showing Hierarchical Categories: To display parent and child categories correctly in the 'Categories' widget, ensure the 'Show hierarchy' option inside the widget settings is checked.
- Changing Decorative Lines: The black lines above and below sidebar widgets are controlled by CSS. To change their color, you need to target the relevant CSS selectors (often
.widgetborder properties) in your child theme's stylesheet. - Removing a Sidebar Line: If you remove all widgets from a sidebar but a horizontal line remains, this is likely a structural element from the empty widget area. You may need to add custom CSS to hide it, such as
#secondary { display: none; }if you wish to remove the entire sidebar space.
4. Embedding Responsive Video in a Text Widget
Pasting a standard YouTube iframe into a text widget will not be responsive by default. To make an embedded video responsive within any widget, you need to wrap it in a container and apply CSS. Add HTML like the following to your text widget:
<div class="responsive-video-container">
<iframe...></iframe>
</div>
Then, add this corresponding CSS to your child theme:
.responsive-video-container {
position: relative;
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
height: 0;
overflow: hidden;
}
.responsive-video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
5. Adding a New Custom Widget Area
If you have added code to your child theme's functions.php file to register a new sidebar and it does not appear in the Dashboard, check for syntax errors like incorrect quotes or missing commas. Ensure the code is placed correctly within PHP tags. The code snippet provided in the forums is correct, so the issue is typically a typo or a conflict with other code in the file.
By methodically checking these common areas—saving widgets, understanding template rules, managing CSS conflicts, and correctly using widget settings—most Twenty Sixteen sidebar issues can be resolved effectively.
Related Support Threads Support
-
Sidebar Custom Social Icons Positionhttps://wordpress.org/support/topic/sidebar-custom-social-icons-position/
-
Text in widget not savedhttps://wordpress.org/support/topic/text-in-widget-not-saved/
-
adjust side bar listinghttps://wordpress.org/support/topic/adjust-side-bar-listing/
-
increase the number of recent posts in sidebarhttps://wordpress.org/support/topic/increase-the-number-of-recent-posts-in-sidebar/
-
Sidebar widthhttps://wordpress.org/support/topic/sidebar-width-54/
-
Order of page titles listed in sidebarhttps://wordpress.org/support/topic/order-of-page-titles-listed-in-sidebar/
-
Widgets – Ligne de séparationhttps://wordpress.org/support/topic/widgets-ligne-de-separation/
-
Twenty sixteen sidebar in mobilehttps://wordpress.org/support/topic/twenty-sixteen-sidebar-in-mobile/
-
Move mobile sidebar to top in Twenty Sixteenhttps://wordpress.org/support/topic/move-mobile-sidebar-to-top-in-twenty-sixteen/
-
3 Columns Possible?https://wordpress.org/support/topic/3-columns-possible-1/
-
Sidebar disappearedhttps://wordpress.org/support/topic/sidebar-disappeared-32/
-
Show sidebar on my blog’s homepagehttps://wordpress.org/support/topic/show-sidebar-on-my-blogs-homepage-2/
-
sibebar-1 is displaying when not called in 1.1https://wordpress.org/support/topic/sibebar-1-is-displaying-when-not-called-in-11/
-
deleting sidebar widget in Twenty Sixteenhttps://wordpress.org/support/topic/deleting-sidebar-widget-in-twenty-sixteen/
-
YouTube embed on sidebarhttps://wordpress.org/support/topic/youtube-embed-on-sidebar/
-
Move site-title to sidebarhttps://wordpress.org/support/topic/move-site-title-to-sidebar/
-
Content Bottom widget with horizontal layout?https://wordpress.org/support/topic/content-bottom-widget-with-horizontal-layout/
-
How to remove login and register from the top bar of my websitehttps://wordpress.org/support/topic/how-to-remove-login-and-register-from-the-top-bar-of-my-website/
-
1 Bottom widget over the full width?https://wordpress.org/support/topic/1-bottom-widget-over-the-full-width/
-
How to mark child categories in sidebarhttps://wordpress.org/support/topic/how-to-mark-child-categories-in-sidebar/
-
Widget translation not showinghttps://wordpress.org/support/topic/widget-translation-not-showing/
-
Widget in Sidebar – change bar color from blackhttps://wordpress.org/support/topic/widget-in-sidebar-change-bar-color-from-black/
-
Custom page template, sidebar appearing below contenthttps://wordpress.org/support/topic/custom-page-template-sidebar-appearing-below-content/
-
Add widget positionhttps://wordpress.org/support/topic/add-widget-position/
-
Add vertical picture to the right side of the texthttps://wordpress.org/support/topic/add-vertical-picture-to-the-right-side-of-the-text/
-
Would like to set sidebar to the tophttps://wordpress.org/support/topic/would-like-to-set-sidebar-to-the-top/
-
How do I get Content Bottom 1 and 2 widgets to show?https://wordpress.org/support/topic/how-do-i-get-content-bottom-1-and-2-widgets-to-show/