WordPress.org

Ready to get started?Download WordPress

Forums

RSS Widget destrict titel (3 posts)

  1. BasNijmegen
    Member
    Posted 2 years ago #

    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

  2. BasNijmegen
    Member
    Posted 2 years ago #

    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

  3. NewsArena
    Member
    Posted 1 year ago #

    after

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

    add

    $title = wp_html_excerpt( $title, 60 );

Topic Closed

This topic has been closed to new replies.

About this Topic