WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sidebar 2 problem (6 posts)

  1. Pankas
    Member
    Posted 4 years ago #

    I just reinstalled my WordPress theme called D'Computers 1.0 by D'. I noticed that there were 2 extra items (categories, and links) on my sidebar 2. I removed all widgets from sidebar 2, but those 2 are there. I wonder what php file that could possibly control the sidebar 2? By the way, I tried it with a different WordPress theme, but no success. What is your suggestion to fix this problem?

  2. Micah Cooksey

    Posted 4 years ago #

    Try adding some widgets. A lot of times a theme will have some widgets included by default that are replaced when you add widgets of your own.

  3. Pankas
    Member
    Posted 4 years ago #

    Let me reiterate this problem. After I reinstalled it, I noticed that there were more widgets than what there were supposed to. Then I removed all the widgets that I added. There I found that there were 2 that I did not add. Something weird did happend after reinstalled the theme, D'Computers 1.0. What is the culprit behind this strange thing?

  4. Micah Cooksey

    Posted 4 years ago #

    Does your theme have a sidebar.php? Try removing the code after <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?> and see if that resolves it.

  5. Pankas
    Member
    Posted 4 years ago #

    I have sidebar1.php and sidebar2.php. However, I did not find the code as you described.
    Here is what my sidebar2.php file looks like:

    <div class="art-sidebar2">
    <?php if (!art_sidebar(2)): ?>
    <div class="art-Block">
    <div class="art-Block-body">
    <div class="art-BlockHeader">
    <div class="l"></div>
    <div class="r"></div>
    <div class="art-header-tag-icon">
    <div class="t"><?php _e('Categories', 'kubrick'); ?></div>
    </div>
    </div><div class="art-BlockContent">
    <div class="art-BlockContent-tl"></div>
    <div class="art-BlockContent-tr"></div>
    <div class="art-BlockContent-bl"></div>
    <div class="art-BlockContent-br"></div>
    <div class="art-BlockContent-tc"></div>
    <div class="art-BlockContent-bc"></div>
    <div class="art-BlockContent-cl"></div>
    <div class="art-BlockContent-cr"></div>
    <div class="art-BlockContent-cc"></div>
    <div class="art-BlockContent-body">

      <?php wp_list_categories('show_count=1&title_li='); ?>

    </div>
    </div>

    </div>
    </div>
    <div class="art-Block">
    <div class="art-Block-body">
    <div class="art-BlockHeader">
    <div class="l"></div>
    <div class="r"></div>
    <div class="art-header-tag-icon">
    <div class="t"><?php _e('Links:', 'kubrick'); ?></div>
    </div>
    </div><div class="art-BlockContent">
    <div class="art-BlockContent-tl"></div>
    <div class="art-BlockContent-tr"></div>
    <div class="art-BlockContent-bl"></div>
    <div class="art-BlockContent-br"></div>
    <div class="art-BlockContent-tc"></div>
    <div class="art-BlockContent-bc"></div>
    <div class="art-BlockContent-cl"></div>
    <div class="art-BlockContent-cr"></div>
    <div class="art-BlockContent-cc"></div>
    <div class="art-BlockContent-body">

      <?php wp_list_bookmarks('title_li=&categorize=0'); ?>

    </div>
    </div>

    </div>
    </div>

    <?php endif ?>
    </div>

    Those 2 items that I have now are "Categories and Link".

  6. Pankas
    Member
    Posted 4 years ago #

    I deleted the unnecessary codes. It is working fine now. Thanks for your suggestion, micahcooksey.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags