WordPress.org

Ready to get started?Download WordPress

Forums

Where in WP code to edit "Link Category" ?? (10 posts)

  1. pschwar
    Member
    Posted 8 years ago #

    I need to go into the WP code and edit the place where it displays the "Link Category" on the sidebar - Does anyone know which file and where in that file I should do this?

    Thanks!!

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    It's not in the theme file ?

  3. pschwar
    Member
    Posted 8 years ago #

    No, in the sidebar.php file in the theme, it just makes a call to some category-related function. I'm looking for the specific place in that function that displays the link category.

    Oh, and I'm using WP 2.0.1

  4. Mark (podz)
    Support Maven
    Posted 8 years ago #

    I'd look first in links.php and link-categories.php

  5. pschwar
    Member
    Posted 8 years ago #

    I've hunted around link-categories.php, can't find anything. :-(

  6. Mark (podz)
    Support Maven
    Posted 8 years ago #

    This may sound daft, but can you do a screenshot or give us a link to precisely what you mean ? I think we are talking about different things.

  7. pschwar
    Member
    Posted 8 years ago #

    Look at the sidebar on the very right...
    http://www.finlandforthought.net

    Look at the link categories (if you're using firefox) or the first link in each category (if you're using IE). Something is screwed up there, it's probably in my CSS, but when I was using 1.5.2 I was able to edit something to fix this. When I upgraded to 2.0.2 I lost that.

    Thanks for your help podz!!!!!!

  8. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Okay....
    Line 547 in links.php is this:
    // Display the category name
    echo ' <li id="linkcat-' . $cat['link_category'] . '"><h2>' . $cat['cat_name'] . "</h2>nt<ul>n";

    and that's where the h2 is being added. But after that h2 is a newline, then a tab... so why yours is doing that....

    I'll keep looking.

  9. kickass
    Member
    Posted 8 years ago #

    I always wondered why that h2 for the linkcat was generated from core . . . kinda dumb.

  10. Mark (podz)
    Support Maven
    Posted 8 years ago #

    From a year ago:
    http://wordpress.org/support/topic/24245?replies=8
    agreed. Should be an owner's choice.

    psychwar:
    Do you definitely have
    $cat['cat_name'] . "</h2>/n/t<ul>n";
    in your links.php as above ?

    Edit: see the /n/t ? those slashes should be the other way round.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.