Tiffany
|
Scratch that!!!
I figured it out. Turns out there are 2 files that are named similar yet I had not noticed it previously... my bad, anyway... these are - Sidebar.php and Sidebars.php
Sidebars.php allows me to add the extra widgets as needed...
'bottom' => array( 'name' => __('First Bottom Widget Area', THEME_NS), 'id' => 'first-bottom-widget-area', 'description' => __("This sidebar is displayed below the main content.", THEME_NS) ), 'bottom2' => array( 'name' => __('Second Bottom Widget Area', THEME_NS), 'id' => 'second-bottom-widget-area', 'description' => __("This sidebar is displayed below the main content.", THEME_NS) ),
Below this section I can simply add the arrays I needed by copying this code / pasting it below the above section and giving it the appropriate names as follows...
'bottom3' => array( 'name' => __('Third Bottom Widget Area', THEME_NS), 'id' => 'third-bottom-widget-area', 'description' => __("This sidebar is displayed below the main content.", THEME_NS) ), 'bottom4' => array( 'name' => __('Fourth Bottom Widget Area', THEME_NS), 'id' => 'fourth-bottom-widget-area', 'description' => __("This sidebar is displayed below the main content.", THEME_NS) ),
Save, Refresh the Widgets Page in Dashboard and I see the new widget areas appear appropriately.
RE Jeff's post above, to create a new widget area above the bottom area, you need to follow the same methods as previous posts... this is one of my favorites that I simply applied the concept to suit my needs: http://reflectingthedesigner.com/wordpress/2011/03/09/adding-a-widgetized-sidebar-to-your-header/
In summary:
Create a new sidebar.php (or so as not to confuse create sidebar-bottom.php file) only name and save it to something like "sidebar-abovebottom.php" using a text editor like Notepad or Notepad++.
Copy the Code from any of the sidebar php files... should look like this:
<?php
$places = theme_get_sidebar_places('bottom');
$count_widgets = array_sum(array_map('count', $places));
if($count_widgets > 0) {
theme_print_sidebar('bottom', $places);
}
?>
only change it to reflect the call name for your new area <?php
$places = theme_get_sidebar_places('abovebottom');
$count_widgets = array_sum(array_map('count', $places));
if($count_widgets > 0) {
theme_print_sidebar('abovebottom', $places);
}
?>
Once saved upload to your WP-Content folder via cpanel or FTP.
Open in an editor the Sidebars.php file, (not the sidebar.php) as mentioned at the top of this post, and add the new Arrays for your widget areas only you would need to add 4 of them with names like "abovebottom1" like so
'abovebottom1' => array(
'name' => __('First AboveBottom Widget Area', THEME_NS),
'id' => 'first-abovebottom-widget-area',
'description' => __("This sidebar is displayed below the main content.", THEME_NS)
),
'abovebottom2' => array(
'name' => __('Second AboveBottom Widget Area', THEME_NS),
'id' => 'second-abovebottom-widget-area',
'description' => __("This sidebar is displayed below the main content.", THEME_NS)
),
Etc. (For 4 areas you would have to create 2 more as above)
And once you have created all 4 areas - Save the file (if edited externally you will need to upload and replace the original Sidebars.php in WP-Content - if you edited using the Editor section inside WP Dashboard admin area then you're good to move on!)
Now to add to the Options.php file:
Locate this section
array(
'id' => 'theme_sidebars_style_bottom',
'name' => __('Bottom sidebars', THEME_NS),
'type' => 'select',
'options' => $theme_sidebars_style_options
),
Copy to text editor and replace all references to 'bottom' to be 'abovebottom' (or whatever sidebar name you chose. Then paste it between the arrays for 'top' and 'bottom' (the one you copied to begin with) so that it looks like this:
array(
'id' => 'theme_sidebars_style_abovebottom',
'name' => __('AboveBottom sidebars', THEME_NS),
'type' => 'select',
'options' => $theme_sidebars_style_options
),
Save the file (again if done in the Dashboard Editor then you're done, if editing the options.php externally you will have to upload and replace the original in WP-Content folder)
If you are using V4.0 final - you also like to add it to the Defaults.php file -
find 'theme_sidebars_style_top' => 'post', 'theme_sidebars_style_bottom' => 'post', and insert your new sidebar default between the two... this is just to keep it in order for your reference only... add 'theme_sidebars_style_abovebottom' => 'simple',
Then go and add the call tag to the right file/files... Also can be done in the Editor Dashboard of WP Admin or externally... anything done externally must be saved and uploaded to replace the original in the WP-Content folder...
This would be resemblant of your call tag... just change the sidebar name to whatever you opted for:
<?php get_sidebar('abovebottom'); ?>
to the file you are applying this to... in your case this would be the page.php & single.php if you want it to be inside the sheet OR to the footer.php instead to appear in the footer section.
Add directly above this section in page and single and after the closing ?>
<?php get_sidebar('bottom'); ?>
<?php get_footer(); ?>
Or to the Second line in Footer.php where at times there appears to be an empty sidebar call. </div>
<?php get_sidebar(); ?>
</div>
</div>
</div>
</div>
<footer class="art-footer clearfix"><?php get_sidebar('footer'); ?>
Style the CSS accordingly in your style.css file (see the referenced URL link above)
Hope this helps you and anyone else out, Jeff!!!
|