Support » Plugins » Hacks » Changing anchor of categorie links

  • I want to add a keyword in anchor of all categorie links. The keyword is same for all categories. How can I do that?

    <a href="">KEYWORD categorie</a>


Viewing 3 replies - 1 through 3 (of 3 total)
  • hi

    Go to your theme and find content.php then find $categories_lists
    and replace $categories_lists to ‘KEYWORD categorie’.(If theme is twentyeleven)
    But if it is twentyten then find loop.php then find get_the_category_list( ‘, ‘ ) and replace get_the_category_list( ‘, ‘ ) to ‘Keyword’ ;

    Actually I need to add a keyword to the_category() echo.
    <a href="">KEYWORD category</a>
    instead of
    <a href="">category</a>
    so for every category anchor there should be same keyword in it.

    <a href="">KEYWORD first_category</a>
    <a href="">KEYWORD second_category</a>

    if I would do what you said then the anchor text would be same on all categories.

    ok you can use
    $category = get_the_category() ;
    echo “KEYWORD”.$category;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing anchor of categorie links’ is closed to new replies.