I am using the 3 column layout. In my admin area I have only one sidebar - functioning fine with widgets, etc. But on my site, there are two sidebars displaying (which I want). I just have no idea where the content is coming from and I would like more control over this.
Cutline Theme Support Forums » Cutline Theme Support Forums
where's the sidebar 2 in admin area?
(6 posts)-
Posted 4 years ago #
-
One place to look is Presentation -> Widgets. You should see Sidebar 1 and Sidebar 2. Another is in the Theme Editor (also under Presentation) look for the files labeled r_sidebar.php and l_sidebar.php. Finally, you can download the widgets file from the directory labeled blog on your server for access to the widgets. -Good luck.
Posted 4 years ago # -
I have the same problem in Cutline with the two right sidebars. Sidebar 1 displays in the Widgets admin area and works fine, but Sidebar 2 does not appear at all in Widgets Admin. I have not modified the code from the original downloaded files, so why the r_sidebar (which has the widget code in it) does not display in Admin is a mystery. Anyone know how to fix this???
Posted 4 years ago # -
arm0110:
nycdeb provides a helpful answer here: http://cutline.tubetorial.com/forums/topic/multiple-sidebars-for-page-templates?replies=7
But I'll rephrase the advice, because there were some things unclear to me that might be unclear to others.
1) If you have not already done so, you'll need to make your files for sidebar.php, r_sidebar.php, and functions.php writeable.
2) Your sidebar.php and r_sidebar.php files should, respectively, have a line of code like this:
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1)) : ?>
and
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(2)) : ?>
This line tells the function.php file which sidebar is which. But the function.php has only one call line for for the first sidebar file. So you need to create another call line calling out to the second sidebar file.
3) Do this by opening the function.php file. Find the line (near the top) that reads:
if ( function_exists('register_sidebars') )
register_sidebar(1);Copy the "register_sidebar(1);" line. Paste the new line below it. Change the "1" to a "2" like this:
register_sidebar(2);
Be sure to keep the semicolon!
And that's it! You should see "Sidebar 1" and "Sidebar 2" in your widgets options.Posted 3 years ago # -
Where do I find: Presentation > Widgets
Posted 3 years ago # -
I tried kevinwmoore's suggestion, to no noticeable effect. My file already had register_sidebar(2); so I added register_sidebar(1); instead. The suggestion seems credible but may be only part of the solution.
Posted 3 years ago #
Reply
You must log in to post.
not resolved