• magnusenstrom

    (@magnusenstrom)


    Hey!
    I’m running into some trouble with removing the title from a tag cloud I have placed with Elementor. I have pasted this into functions.php but nothing really happens.

    function wp_tag_cloud_remove_title_attributes($return) {
            // This function uses single quotes
            $return = preg_replace("<code>title='(.+)'</code>", "", $return);
        return $return;
    }
    add_filter('wp_tag_cloud', 'wp_tag_cloud_remove_title_attributes');

    Is there anything I’m missing?

    I have a cloud tag widget placed from elementor. This is what I’m trying to remove:

    View post on imgur.com

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    Thread Starter magnusenstrom

    (@magnusenstrom)

    Hey, yeah I’ve tried that but it doesn’t seem to work for me unfortunately. Nothing happens when I put this code in functions.php:

    function wp_tag_cloud_remove_title_attributes($return) {
            // This function uses single quotes
            $return = preg_replace("<code>title='(.+)'</code>", "", $return);
        return $return;
    }
    add_filter('wp_tag_cloud', 'wp_tag_cloud_remove_title_attributes');

    I can change title color with elementor but I can’t hide the title itself. Any other ideas on how to solve this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Tag cloud title’ is closed to new replies.