Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15289

    Hi everyone,

    I´m trying to remove the default boxes in the sidebar. I don´t want any default thing. I want to use this space to put plugins or other things. Really I have a plugin there, rather a call of sentence for `nrelate´ widget:

    <?php if (function_exists(‘nrelate_popular’)) nrelate_popular(); ?>

    And it works. I can see the plugin. The problem came when I tried to remove (writing in source code) Categories and Archive:

    <div class=’box box_small’>

    <h3>Categories</h3>

    <ul>

    <?php wp_list_cats(‘sort_column=name&optioncount=0&hierarchical=0′.$exclude); ?>

    </ul>

    </div>

    <div class=’box box_small’>

    <h3>Archive</h3>

    <ul>

    <?php wp_get_archives(‘type=monthly’); ?>

    </ul>

    </div>

    When I do it, the page does strange things, for example I only see half pictures of `nrelave´. Also, I tried to remove this previous part in the code:

    //unique Category sidebars

    if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Category: ‘.$custom_widget_area.’ ‘.$sidebar) ) : $default_sidebar = false; endif;

    Any suggestion?

    #86924

    Hey,

    First, remove the widgets on Appearance > Widget > Frontpage sidebar left.

    Then you can insert the code here.

    //right dummy sidebar
    }else { ?>
    <div class='box box_small'>
    <h3>Nrelate</h3>
    <ul>
    <?php if (function_exists('nrelate_popular')) nrelate_popular(); ?>
    </ul>
    </div>

    <div class='box box_small'>
    <h3>Bloggroll</h3>
    <ul>
    <?php wp_list_bookmarks('title_li=&categorize=0'); ?>
    </ul>
    </div>
    <?php

    Regards,

    Ismael

    #86925

    Done, thanks Ismael, you are helping me a lot!

    #86926

    Hi antoniocansi,

    Glad that we could help. :)

    Cheers,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Right Sidebar problem with default boxes Categories and Archive’ is closed to new replies.