WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Removing sidebar items in iNove template (16 posts)

  1. esserd
    Member
    Posted 5 years ago #

    I would like to remove the Meta, Archive and Blogroll items from my iNove sidebar. Oddly, these are widgets, but they are not selected on my widget page. If I were to select, for example, Archives from my widgets page I'd end up with two Archives on my sidebar. I could then deselect the Archive widget, but I'd still be left with the one that was already there.

    I went into my Sidebar.php file but I don't fully understand php and was unable to intuit what I needed to change.

    Any help will be greatly, indeed massively, appreciated.

  2. mg12
    Member
    Posted 5 years ago #

    Hi, esserd.

    There are 4 sidebars.
    North sidebar: Recent Posts, WP-RecentComments, Tag Cloud
    South sidebar: Meta
    West sidebar: Archives
    East sidebar: Categories

    For example, if you want to remove Categories widget:
    1. Goto Theme Widgets page.
    2. Select east_sidebar as Current Widgets.
    3. Remove widget and save change.

  3. esserd
    Member
    Posted 5 years ago #

    mg12,

    Thank you for the speedy reply.

    Unfortunately when I change my widgets to east, south, or west I don't show any widgets selected.

    Incidentally, when I go to south_sidebar, I can select "Meta." when I do that, I get a slightly more involved "Meta" section (a couple more links). But then when I remove the widget, I still get the default, smaller version of "Meta." So these look to me to be two different things.

    I have not studied PHP (yet), but am not totally clueless around code. If anyone could point me in the right direction about where I might go to remove that I code I'd be happy to take a shot at that.

    Thanks everyone.

  4. esserd
    Member
    Posted 5 years ago #

    Just solved it.

    It is true that these default settings do not show up in widgets when you select the appropriate sidebar. However, it is simple enough to go into the sidebar.php file, find "archives" "categories" etc and delete out the section between the <div> ...appropriate code... </div>.

  5. petednz
    Member
    Posted 5 years ago #

    Is there a way to shift the RSS feed from top place without hacking the code?

  6. mistercyril
    Member
    Posted 5 years ago #

    I'm looking for the same thing...

    I'm trying to get rid of the RSS Feed widget on the top of the side bar but when I take it out the drop down menu (main menu) doesn't work anymore.

    I can't seem to figure out how a code in the side bar can influence the main menu, but i'm not an expert so any help would be great ;-)

    C.

  7. Jester Lewis
    Member
    Posted 5 years ago #

    Me too! Exactly the same prob. Sad, because the theme is a really nice one.

    JL

  8. paydroe
    Member
    Posted 5 years ago #

    How can you design a page template without a sidebar? I cannot find a solution for this theme.

  9. sparagi
    Member
    Posted 5 years ago #

    Can someone provide the code for a clean sidebar for inove? I would rather just add the widgets i'm looking for.

  10. deltahope
    Member
    Posted 5 years ago #

    Here is the "clean" sidebar.php for iNove:

    <?php
    $options = get_option('inove_options');

    if($options['feed'] && $options['feed_url']) {
    if (substr(strtoupper($options['feed_url']), 0, 7) == 'HTTP://') {
    $feed = $options['feed_url'];
    } else {
    $feed = 'http://' . $options['feed_url'];
    }
    } else {
    $feed = get_bloginfo('rss2_url');
    }
    ?>

    <!-- sidebar START -->
    <div id="sidebar">

    <!-- sidebar north START -->
    <div id="northsidebar" class="sidebar">

    <!-- feeds -->

    <!-- showcase -->

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('north_sidebar') ) : ?>

    <!-- posts -->

    <!-- recent comments -->

    <!-- tag cloud -->

    <?php endif; ?>
    </div>
    <!-- sidebar north END -->

    <div id="centersidebar">

    <!-- sidebar east START -->
    <div id="eastsidebar" class="sidebar">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('east_sidebar') ) : ?>

    <!-- categories -->

    <?php endif; ?>
    </div>
    <!-- sidebar east END -->

    <!-- sidebar west START -->
    <div id="westsidebar" class="sidebar">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('west_sidebar') ) : ?>

    <!-- blogroll -->

    <?php endif; ?>
    </div>
    <!-- sidebar west END -->
    <div class="fixed"></div>
    </div>

    <!-- sidebar south START -->
    <div id="southsidebar" class="sidebar">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('south_sidebar') ) : ?>

    <!-- archives -->

    <!-- meta -->

    <?php endif; ?>
    </div>
    <!-- sidebar south END -->

    </div>
    <!-- sidebar END -->

  11. perfeng702
    Member
    Posted 5 years ago #

    thanks for the help. i'll be putting that sidebar code to use.a

    TL

  12. Heather
    Member
    Posted 5 years ago #

    Thanks for this.

    I have found that once you have edited the code as above, the site doesn't seem to display correctly in firefox and google chrome though.

  13. Heather
    Member
    Posted 5 years ago #

    I just tried again and your edited code works great!

    I wish they would just remove the east, west and south sidebars and just have 1

  14. neil@saxmundham.eu
    Member
    Posted 5 years ago #

    I agree but the above code works well.

  15. Linda Lee
    Member
    Posted 4 years ago #

    I love you Deltahope, you just saved me so much time!!
    Thank you.
    :)

  16. Linda Lee
    Member
    Posted 4 years ago #

    Oops, it does mess up the display in other browsers, drat...

Topic Closed

This topic has been closed to new replies.

About this Topic