I added after
get_header(); ?>
<aside id="secondary" class="left-sidebar widget-area" role="complementary">
<?php dynamic_sidebar( 'sleft' ); ?>
</aside><!-- .sidebar .widget-area -->
Then
aside#secondary {
width: 20%;
float: left;
margin-right: 15px;
}
Now… if you’re going to have both sidebars, you’ll have to adjust the
@media screen and (min-width: 61.5625em)
body:not(.search-results) article:not(.type-page) .entry-content {
float: left;
width: 50%;
}
or something like that. You can customize the CSS as you need, but this should put you on the right track.
Also.. FWIW, I created a child theme, and added this to it, rather than modifying the twentysixteen theme directly. This is the recommended method.
Related Posts:
- Check if has any sidebar active on current page
- Dynamically Register Sidebars For Each Top Level Page
- Change a sidebar name?
- add sidebar area to header of child theme
- Advice: Template structure – php blocks in sidebar or someting else?
- Make “sidebar template” the default template for new pages
- Missing argument 2 for a custom function widgets_init
- is_dynamic_sidebar always returns true while using Jetpack visibility
- How to insert custom widget in custom sidebar in theme activation?
- Display post shortcode content in the sidebar?
- Best practices regarding the creation of custom widgets?
- How do you Permanently Delete Sidebars
- Custom Sidebar only on single post
- Is `is_sidebar_active()` deprecated, and showing error?
- register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead
- Why is it so hard to add a class to the tag in the sidebar widget?
- Best way to disable sidebars on posts (only)?
- Register_Sidebar overwriting itself and doesn’t exist in global $wp_registered_sidebars;
- New checkbox in custom widget isn’t saving data
- Multiple, Dynamic, Sidebars Problem – First Sidebar not working properly
- How do you insert code into the sidebar?
- Change is_front_page() to is_page() to display ‘hero’ on entire site?
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- unregister_sidebar in child theme not working
- Additional Sidebar
- Add the title of a widget as an ID – for anchor links
- Ajax call always returns 0
- plugins_url vs plugin_dir_url
- How to override a function when isn’t at functions.php
- Where and how to put inline js in pages
- Show modified time if post is actually modified
- Hourly Routine Not Firing ( wp_schedule_event() )
- Fatal error: Call to undefined function add_action() – an untouched problem
- echo or print_r in an admin function
- Overriding methods in a child theme
- Automatically Add Specified Value to Attachment Metadata upon Upload
- WP disobeys disabling of the posts revision feature
- How do I deactivate a plugin for some roles
- Twenty Eleven Child theme error when attempting to use a rewritten function
- How to display more audio file ID3 tags in WordPress
- Running CRON on Server with WP Function
- wp_trash_post function to only apply to posts, not pages!
- Adding widget to dashboard with wp_dashboard_setup not working
- qTranslate in functions.php
- Using Schema with `the_excerpt`
- Image rotation fails to regenerate custom sized thumbnail
- Register and load scripts
- Having a Function Inside of the Loop
- How to rewrite the custom url in wordpress?
- About cron delete user with meta_key
- Unable to login using username
- How to change the order of Jquery in the footer of my theme?
- media resize/crop possibilities?
- adding custom script to functions file
- edit formatting.php in a theme so it wont get overwritten
- Hook into a function without a hook?
- add_action template_redirect not working for home page
- Way to store featured image width and height in two separate variables?
- Insert template-part inside the content
- Got white blank page after copying the functions.php to child theme
- Add unique id to Preview URL
- Numbering lines of code with the tag?
- Latest Foursquare Checkin function
- Insert nofollow in a “Powered By” link, except in the homepage [closed]
- Image loading function not working on archive.php template
- what is best way to keep track of changes made in wordpress website? [closed]
- Is this an acceptable practice for WordPress theme development?
- How to use parent theme functions in child theme functions.php file?
- How to change a specific admin label
- Custom image sizes showing in Classic Editor only when upladed directly to post
- How to add extra value to permalink
- Bulk updating a group of WordPress Pages every 10 minutes
- remove_filter function to unhook twentysixteen parent theme function
- Allow logged in user to view a Page, else send to login screen and then redirect back to Page
- How to add javascript code into Divi child theme?
- Appending „read more” to the excerpt conditionally
- Override plugin function to show invoices even if not logged in
- How To Display Author Popup on Entry Meta (Genesis Framework)?
- Serving cache from multiple domain names
- ACF Filter return value
- Why am I losing image quality on my site?
- Replace image attributes for lazyload plugin on image elements with specific class
- Custom shortcode with do_shortcode and substr
- Keep js after reload the page
- Add array of category IDs to global variable?
- Pass max posts to Javascript
- Changing the color of post title [closed]
- update_usermeta don’t work
- Create html from function
- WP supersize not displaying when different languages flags are selected
- wp_list_pages change of children and anchor of parent
- Admin Panel errors because of functions.php
- WordPress not performing direct update
- Using Output from one Function and calling it into another
- How to add a class and title attribute to the link generated by next/previous post
- “Headers already sent” while trying to add a CSS file to my login page?
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- Bulk set Post Title as Tag where Tag is Empty Function
- comment_post function with js not running
- Problem with removing characters “<” – WpAllImport