• Hi,
    I’ve just installed a new template that came with a blogroll already installed in the right sidebar (it’s a 3-col. theme). I’ve been trying to get rid of it, but whenever I remove the bit of code I think should go, it removes everything in the sidebar (i.e. also the SEARCH form) and gives me the message Parse error: syntax error, unexpected $end in.

    The code in the sidebar file looks like this:

    <div id=”right_bar” class=”sidebar”>
    <ul class=”sidebar_list”>
    <?php
    if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(2)) : ?>
    <li class=”widget”>
    <h2>Search This Site</h2>
    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    <?php get_links_list(‘id’); ?>
    <?php
    endif; ?>

    </div>

    … Can anyone tell me which piece of code should go??

    (Incidentally, this is not the blogroll widget – that’s what I’d eventually like to use).

    Thank you!
    Alda
    https://newsite.aldasigmunds.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • you should be able to just remove this part
    <?php get_links_list('id'); ?>

    HOWEVER if youre going to be using widgets, whatever you add for widgets will replace all that anyways. go add the blogroll widget right now without deleting anything from sidebar.php youll see what i mean.

    Thread Starter alda

    (@alda)

    Thanks boober. That worked.

    The problem with the widget was that I wanted the blogroll on the left sidebar … when I added the widget there it just added another blogroll, exactly the same as on the right.

    However, it’s fixed now. Many thanks.

    I’m having the same issue with a theme I’m using (OctoPink 1.0). It’s a 2-column theme, but only has one sidebar.php file. I cleared out this file, leaving only the widget reference.

    My sidebar.php only now only contains the following:

    ‘ <!– Sidebar –>
    <div class=”sidebar”>

    <?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(1) ) : ?>

    <?php endif; ?>

    </div>
    <!– Sidebar –>’

    This only cleared out the left sidebar. In the right sidebar, it left “categories” and “blogroll”. I want to take these out, but I can’t find it’s reference in any file in the theme folder. Is there anywhere else I can look? I, too, want blogroll in the left sidebar, but I don’t want a duplicate in the right sidebar.

    all I can suggest is to look a little bit harder… if the above keywords aren’t working for you try looking for the word ‘bookmarks’ in the function name.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing blogroll from sidebar’ is closed to new replies.