The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "SVG" Oct 14 - 6:30 PM Eastern
Get a free trial // Grow your CSS skills // Land your dream job

Replacing words in attributes.

  • # February 14, 2010 at 10:07 pm

    Wordpress loves to add attributes to links, many of which I can’t seem to find a way of editing. In particular links generated with ‘wp_list_categories’ and ‘wp_tag_cloud’.

    You’ll find that when you hover your mouse over these links a ‘title attribute’ will shove in something like "3 topics" or "View all posts filed under Blogging".

    In my case I’d rather the words ‘topics’ and ‘posts’ be change changed to something more appropriate for the site I’m working on, in this case ‘items’ or ‘products’ would be better.

    However I can not for the life of me manage to get the title attribute (from the generated link), find and replace the word(s) (in this case ‘topics’ and ‘posts’) to the words ‘items’.

    So to change:




    to this




    It’s a very small change I know, but if I’m using WordPress for something other than Blogging then referring to everything as a post or topic is a little odd. I suppose removing the title attribute is an option to (Gonna need help on that to)

    Any help is much appreciated. Thank you.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed