• How do I make the link code appear in all sidebars?
    I want the link MAIN WEB SITE in all sidebars.

    Here’s the code for the home page
    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) : ?>
    <?php get_links_list(); ?>

    I’m using the default_allsidebar template for this site:
    unitcoins.us/articles/

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Not 100% sure what your meaning.

    But if you want a link to show up in your sidebar, a good way to do it is insert the html for that link into a text widget.

    Thread Starter v2006

    (@v2006)

    Thanks for helping..the default_allsidebar template I’m using has no widgets.

    If I edit sidebar.php for this template with:

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) : ?>
    <?php get_links_list(); ?>

    Links only appear on the homepage (kubrick theme)

    Please advise

    Then don’t put it in a conditional. Use just the template tag:
    <?php get_links_list(); ?>
    Remove the if statement from around it.

    Thread Starter v2006

    (@v2006)

    When I reduced the code from

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) : ?>
    <?php get_links_list(); ?>

    to

    <?php get_links_list(); ?>

    I got this error:

    Parse error: syntax error, unexpected T_ENDIF in

    Please advise

    Didn’t I say:

    Remove the if statement from around it.

    ?

    Which means if there is an opening if statement, it must have a closing “endif or <?php } ?> and that should be also removed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Place link code in all sidebars’ is closed to new replies.