WordPress.org

Support

Support » Themes and Templates » RSS Widget destrict titel

RSS Widget destrict titel

  • Hey there,

    I would like to limit the amount of characters (titel) for the standard RSS widget. I looked into “wpincludes > default-widgets.php” and I found the code for this widget. I found out how to limit the characters for the description (changing the number 360). This option isn’t standard for the RSS title ($title). I would like to limit this one to 60 chars.
    Can anyone help me out?

    Br,
    Bas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did something, but this doesn’t work…
    Changed
    $title = esc_attr(strip_tags($item->get_title()));

    to

    $title = esc_attr(strip_tags($item->get_title()));
    		$title = wp_html_excerpt( $desc, 30 );

    A

    NewsArena

    @newsarena

    after

    $title = esc_attr(strip_tags($item->get_title()));

    add

    $title = wp_html_excerpt( $title, 60 );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘RSS Widget destrict titel’ is closed to new replies.
Skip to toolbar