WordPress.org

Ready to get started?Download WordPress

Forums

editing sidebar.php for links call (11 posts)

  1. vener
    Member
    Posted 9 years ago #

    Hi all,

    I've tried adding code, removing code, moving code. But I know I don't know enough and I am not getting what I want. I want to have my links appear on every page's sidebar. I have found the "if page is home" but simply removing that and even adding

      doesn't do the trick. At best it leaves a scrunched set of out of order links under the "Categories" heading (with extra >> thrown in above the links). At worst, (without the
      etc) I get an error parsing message and the home page doesn't load.

      Obviously I don't know this code well enough. Can someone help?

      Thank you!

      PC Vener

  2. Joshua Sigar
    Member
    Posted 9 years ago #

    If you have single.php, archive.php, page.php, etc, call the following to get the sidebar.

    <?php get_sidebar(); ?>

    Basically, copy what index.php has.

  3. vener
    Member
    Posted 9 years ago #

    Ah, so you mean I put that call into each of them individually rather than try to just get the links called via the sidebar itself? But I don't understand. If the sidebar only brings up links on the front page, how does calling the sidebar get links onto all pages.

    I think I am becoming more and more confused, but I'll try that.

    Thank you.

    PC vener

  4. Joshua Sigar
    Member
    Posted 9 years ago #

    Wait a second. I was most likely wrong. Paste your original sidebar.php here: http://pastebin.com

  5. vener
    Member
    Posted 9 years ago #

    I tried alphoide's suggestion. It didn't work. I clicked on one of the posts and when it came up it did not show my links. I don't have single.php, by the way.

    Any other thoughts? Thanks!

    PC vener

  6. Joshua Sigar
    Member
    Posted 9 years ago #

    See above.

  7. vener
    Member
    Posted 9 years ago #

    Ok, I've pasted into pastebin. Very cool tool it looks like.

    What's next?

    vener

  8. Joshua Sigar
    Member
    Posted 9 years ago #

    Next time give us the link http://pastebin.com/317603
    Anyhow, delete lines 55 and 67

  9. vener
    Member
    Posted 9 years ago #

    Sorry about that. I have never used a collaborative debugger before!

    Erm... now I'm getting a "Parse error: parse error, unexpected '<' in /home/vener/public_html/beadblog/wp-content/themes/vener-art/sidebar.php on line 52"

    PC vener

  10. vener
    Member
    Posted 9 years ago #

    That's odd because the only thing on line 52 is and it comes before the stuff I deleted!

    vener

  11. vener
    Member
    Posted 9 years ago #

    Got it! I found something that had been accidently deleted! Thanks alphaoide! Now I can go to bed and work on this some more on later! You're terrific! Thanks again!

    PC vener

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.