How do I add a sidebar on the left and right to a page in the superfine theme
7 years ago
fix
Member
Good afternoon!
I need to add two sidebar to the page of the superfine theme, and left and right. On the theme settings, it is possible to add only one sidebar, or left or right of the page. Tell me how to add two sidebar? Thank you! |
7 years ago
fix
Member
Tell me please
|
7 years ago
Dave
Support Service
Hi!
You may set a default layout on the page SuperFine --> Layout in the dashboard of your website as well as a custom content layout for a particular page. But this setting can be adjusted when you editing this page. On the right side of the screen there are "Page Attributes" and "Content Layout" is one of them. |
7 years ago
fix
Member
Thank you.
This method does not solve my problem, the sidebar is either left or right of the page. I found where the position of the sidebar is described in the theme function in the settings.php file 'Type' => 'select', 'name' => 'pagelayout', 'value' => 'right', 'title' => 'Content Layout', 'Params' => array ( 'No' => 'No Sidebars', 'Right' => 'Right Sidebar', 'Left' => 'Left Sidebar' ), 'Hint' => 'Select a default content layout for all pages and posts on your website. You can set the layout for a particular page / post when editing it. ' ), 'Floatingsidebars' => array ( 'Type' => 'check', 'name' => 'floatingsidebars',' value '=>' 1 ',' title '=>' Floating Sidebars', 'hint' => 'Make your sidebars permanently visible when scrolling Up and down. ' And it describes the sidebar functions.php itself Register_sidebar (array ( 'Name' => 'Default sidebar', 'Id' => 'smt_default_sidebar', 'Description' => 'Default sidebar', 'Before_widget' => '<div id = "% 1 $ s" class = "widget% 2 $ s">', 'After_widget' => '</ div>', 'Before_title' => '<div class = "caption"> <h4>', 'After_title' => '</ h4> </ div>' )); I added the code in functions.php Register_sidebar (array ( 'Name' => 'Left sidebar', 'Id' => 'smt_left_sidebar', 'Description' => 'Left sidebar', 'Before_widget' => '<div id = "% 1 $ s" class = "widget% 2 $ s">', 'After_widget' => '</ div>', 'Before_title' => '<div class = "caption"> <h4>', 'After_title' => '</ h4> </ div>' )); Sidebar 'Left sidebar' appeared in the theme settings Appearance> Widgets But I can not figure out how to connect my 'Left sidebar' so that it can be correctly displayed on the pages of the site? I connected it via header.php I added the code to the end of the file <Div class = "sidebar"> <? Php dynamic_sidebar ('smt_left_sidebar'); ?> </ Div> But the 'Left sidebar' is not displayed within the page boundaries but beyond the borders, which disrupts the display on the page. Tell me how to correctly connect it to display it on the page borders? |
7 years ago
Dave
Support Service
Unfortunately, we don't provide any services paid or unpaid for editing themes for individual users.
However, themes, which have been published earlier than February 2016 have this option to display both sidebars. You may select some more suitable for you. |
7 years ago
fix
Member
Thanks for the help, I figured it out myself.
Can someone come in handy. In the directory / www / wp-content / themes / name themes / styles / main.css In the main.css file, look for the line .sidebar-right #container { Right sidebar, because I chose the layout sidebar layout right And we paste the code
Now both sidebar are displayed correctly on the page I also changed the width of the page itself, also in main.css
|
Leave a reply
Search by forum
SMThemes.com Support
-
Categories
- Framework
- Themes
- Affiliate Company
- Sponsorship Useful pages
- How to start using our themes
- Contacts