ThemeShaper Forums » Thematic

Adding above main aside

(2 posts)
  • Started 11 years ago by ecrissman
  • Latest reply from Chris
  • This topic is not resolved
  1. ecrissman

    This same question was asked recently. I am using the Acamas theme and I would like to add a widget area above the primary and secondary asides. I have followed this post and was successful at adding the abovemainaside widget area with the following code: // adding the widget area to your child theme
    function my_sidebar_widgets() {
    if ( function_exists('dynamic_sidebar') && is_sidebar_active('above-mainaside') ) {
    echo '<div id="above-mainaside" class="aside">'. "\n" . '<ul class="xoxo">' . "\n";
    echo '' . "\n" . ''. "\n";
    echo '' . "\n" . '</div><!-- #above-mainaside .aside -->'. "\n";
    add_action('thematic_abovemainasides', 'my_sidebar_widgets', 0);

    I now have two questions.
    1. I added this code in the functions.php file but I am not sure I put it in the right place. Where exactly do new functions belong?
    2. Is there any way to get this new widget area to live inside of the #secondary div. Right now it is in #main, but I want it in the sidebar div.


    Posted 11 years ago #
  2. Hey,

    you can place your functions wherever you want or you can keep your own functions separate at the end of the functions.php.

    We don't use the 'Sidebar' div .. each sidebar has its own class.



    Posted 11 years ago #

RSS feed for this topic


You must log in to post.