• alexb_rj

    (@alexb_rj)


    I’m here again…

    It’s because I’d like to know how to put my “Links” section in the same layout as other sections in my site. There isn’t any “li” command, but the category’s name and its sites are showed with this tiny piece.
    The sidebar code for “Links”:

    “php
    endif;
    $blogrollLinks = get_links_list();
    if ($blogrollLinks != null) :
    ?>
    <div id=”blogroll”>
    <h2><?php _e(‘Links’,’drunkey-love’); ?></h2>
    <div class=”unfold”>
    <ul class=”linklist”>
    <?php get_links_list(); ?>

    </div>

    How to fix it? Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • moshu

    (@moshu)

    Since those are not WP functions – ask the author of the theme.

    spencerp

    (@spencerp)

    *EDITED* You got it, nevermind lol!!

    spencerp

    Thread Starter alexb_rj

    (@alexb_rj)

    I couldn’t solve this… If i delete what comes after “php
    endif”, the sidebar doesn’t work.

    But the other sections of the site are showed properly!!!

    Kafkaesqui

    (@kafkaesqui)

    Did that code come in the theme as is?! First, this won’t work:

    $blogrollLinks = get_links_list();

    because get_links_list() only echos (displays) its output. It doesn’t return anything as a value for a PHP variable. Also, I’m not sure what’s being attempted with:

    _e('Links','drunkey-love')

    Anyway, you can remove this portion:

    $blogrollLinks = get_links_list();
    if ($blogrollLinks != null) :

    Then look for and remove the accompanying endif; in the sidebar, which I assume is what’s causing your “doesn’t work” issue.

    Thread Starter alexb_rj

    (@alexb_rj)

    I removed, then, see what happened:

    “Parse error: parse error in /home/bobeda/www/wp-content/themes/drunkey-love/sidebar.php on line 115”

    And yes, the code come in the theme as it is.

    Kafkaesqui

    (@kafkaesqui)

    Did you (follow my instructions above and) remove this portion after the blogroll div:

    <?php
    endif;
    ?>

    (Note to no one in particular: This officially ends support of the Drunky Love theme provided by me.)

    red-star

    (@red-star)

    The dot comes with the
    ul /ul
    tags

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to get rid of a dot in the category???’ is closed to new replies.