Created
July 5, 2020 07:13
-
-
Save ivanteoh/08e711cb23ff37e4d5bfcbcaa5d67fde to your computer and use it in GitHub Desktop.
Split Sidebar into Two Divisions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ( function_exists('register_sidebar') ) | |
| { | |
| // Primary Sidebar | |
| register_sidebar(array( | |
| 'name' => 'Primary Sidebar', | |
| 'id' => 'primary-sidebar', | |
| 'before_widget' => '<li id="%1$s" class="widget %2$s">', | |
| 'after_widget' => '</li>', | |
| 'before_title' => '', | |
| 'after_title' => '', | |
| )); | |
| // Secondary Sidebar | |
| register_sidebar(array( | |
| 'name' => 'Secondary Sidebar', | |
| 'id' => 'secondary-sidebar', | |
| 'before_widget' => '<li id="%1$s" class="widget %2$s">', | |
| 'after_widget' => '</li>', | |
| 'before_title' => '', | |
| 'after_title' => '', | |
| )); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| div.sidebar { | |
| float: right; | |
| width: 210px; | |
| margin-left: -250px; | |
| padding: 20px; | |
| } | |
| div#secondary-side { | |
| clear: right; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment