WordPress.org

Ready to get started?Download WordPress

Forums

Tag Cloud - Edit Title (5 posts)

  1. a1anm
    Member
    Posted 4 years ago #

    Hi,

    I'm using the built in WordPress tag cloud. When I hover over the items in the tag cloud the tooltip shows some thing like this "5 topics". Which file should I edit to change the word 'topics' to something else?

    Thanks.

  2. Malaysiads.com
    Member
    Posted 4 years ago #

    Anyone got this working?

  3. Rhand
    Member
    Posted 4 years ago #

    wp_tag_cloud() is located in wp-includes/category-template.php.

    /**
     * Default text for tooltip for tag links
     *
     * @param integer $count number of posts with that tag
     * @return string text for the tooltip of a tag link.
     */
    function default_topic_count_text( $count ) {
    	return sprintf( _n('%s topic', '%s topics', $count), number_format_i18n( $count ) );
    }
  4. steeephen
    Member
    Posted 4 years ago #

    Can you please clarify, I've found the wp_tag_cloud:

    function default_topic_count_text( $count ) {
    	return sprintf( _n('%s topic', '%s topics', $count), number_format_i18n( $count ) );
    }

    Do I just change the words "topic" and "topics" to whatever I want?

    I'm so used to working with xhtml that I expected to find (before reading this post):

    `title="topic"'

    thanks.

  5. aeoLo
    Member
    Posted 4 years ago #

    I'm having the same difficulty changing the TITLE tag. =(

Topic Closed

This topic has been closed to new replies.

About this Topic