Forums

In what file is "Blogroll"??? (16 posts)

  1. aar0on
    Member
    Posted 4 years ago #

    I've looked through a bunch of the files in my greyblog-10 theme, as well as the common files included in WordPress, and I can't find where the word 'Blogroll' is in any of them. I'd like to add a symbol next to the word that will show up on my pages, but until I can find where the text actually is, I'm out of luck.

  2. moshu
    Member
    Posted 4 years ago #

    Don't look in files.
    Look in your admin panel: it's the name of your Link category.

  3. aar0on
    Member
    Posted 4 years ago #

    Well, I can't add an image (sorry, I said symbol before) through the admin panel. I need to find it in a file to do that.

  4. whooami
    Member
    Posted 4 years ago #

    blogroll as it is displayed on your site as the heading of a list is links is just a variable.

    you are looking for wp_list_categories

    Its inside widgets.php and category-template.php at the very least.

  5. aar0on
    Member
    Posted 4 years ago #

    I think I'm looking for "links_list", or possibly "linkcat".

  6. aar0on
    Member
    Posted 4 years ago #

    Go see my page here: http://www.one9.us/

    Scroll down to where it says Blogroll. See that

  7. marker to the left of it? I want it gone.
  • whooami
    Member
    Posted 4 years ago #

    No your looking to edit your css for your theme. :)

    WordPress does not add "style" to your blog.

    li {
    list-style-type: square;
    color: #F29900;
    margin: 0 0 0px 0;
    padding: 0 0 0 0px;
    }

    needs to be:

    li {
    list-style-type: none;
    color: #F29900;
    margin: 0 0 0px 0;
    padding: 0 0 0 0px;
    }
  • aar0on
    Member
    Posted 4 years ago #

    Well, if I did that, then the <li> tag would still exsist somewhere in the script, but the square just wouldn't be on the page anymore. I actually like it everywhere else on the page, I just don't want an 'li' marker right next to the word 'Blogroll'.

  • whooami
    Member
    Posted 4 years ago #

    than you need to tinker with your CSS .. the way you are trying to do it is ass backwards, trust me. That's what stylesheets are for.

    add this to the stylesheet for your current theme:

    li.linkcat {
    list-style-type: none;
    color: #F29900;
    margin: 0 0 0px 0;
    padding: 0 0 0 0px;
    }

    and do some reading:
    http://codex.wordpress.org/Finding_Your_CSS_Styles

  • aar0on
    Member
    Posted 4 years ago #

    Thanks, I tried that code out that you posted. It got rid of the little square next to the word 'Blogroll', but the word was still in it's same location... it just didn't have a square next to it. If I can get rid of the <li> tag completely wherever it exsists, then only that will solve my problem.

  • whooami
    Member
    Posted 4 years ago #


  • whooami
    Member
    Posted 4 years ago #

    in your sidebar.php you will find:

    <?php get_links(-1, '<li>', '</li>', ' - '); ?>

    the <li></li> tags are removed by editing that template tag.

    More info:

    http://codex.wordpress.org/Template_Tags/get_links

    have a nice day.

  • Otto
    Tech Ninja
    Posted 4 years ago #

    Actually, he's probably using get_links_list() in some fashion. Given that he's using WordPress 2.1.3, he should switch to using the newer wp_list_bookmarks() instead.

    This will probably do what he wants:
    wp_list_bookmarks('category_before=&category_after=');

    He should also upgrade to WordPress 2.2 due to the 2.1.3 security issue.

  • aar0on
    Member
    Posted 4 years ago #

    I took your advice and upgraded to v2.2 and it went perfectly. Almost, *too* perfectly. Rarely does anything work that well. :/ *waits for sky to fall*

  • aar0on
    Member
    Posted 4 years ago #

    I finally got it after I upgraded to 2.2. In bookmark_template.php, I changed:

    // Display the category name
    			echo '	<li id="linkcat-' . $cat->cat_ID . '" class="linkcat"><h2>' . $cat->cat_name . "</h2>\n\t<ul>\n";
    			// Call get_links() with all the appropriate params
    			get_links($cat->cat_ID, '<li>', "</li>", "\n", true, 'name', false);
    
    			// Close the last category
    			echo "\n\t</ul>\n</li>\n";
    		}
    	}
    }

    to

    // Display the category name
    			echo '	<id="linkcat-' . $cat->cat_ID . '" class="linkcat"><h2>' . $cat->cat_name . "</h2>\n\t<ul>\n";
    			// Call get_links() with all the appropriate params
    			get_links($cat->cat_ID, '<li>', "</li>", "\n", true, 'name', false);
    
    			// Close the last category
    			echo "\n\t</ul>\n\n";
    		}
    	}
    }
  • Otto
    Tech Ninja
    Posted 4 years ago #

    No, no, that's a really really wrong way to do that.

    Try what I said before, change your THEME to use wp_list_bookmarks() instead. No need to edit any core files.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags