Provide a simpler RSS feed with only Feed Title, Description and date,, inside my RSS viewer web part RRS feed

  • Question

  • I am working on sharepoint server 2013, and i added a web part of type RSS viewer . then inside the XSL editor i added the following , to render only title,date & description:-

    <xsl:stylesheet xmlns:x=""
       version="1.0" exclude-result-prefixes="xsl ddwrt msxsl rssaggwrt" 
       xmlns:xsl="" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
       xmlns:rdf="" xmlns:dc=""
       xmlns:rss1="" xmlns:atom=""
        <!-- sets how many items to render -->
        <xsl:param name="rss_FeedLimit">5</xsl:param>
        <!-- locale ID for date and time -->
        <xsl:param name="rss_LCID">1033</xsl:param>
        <xsl:template match="rss">
            <xsl:variable name="Rows" select="channel/item"/>
                <xsl:for-each select="$Rows">
                    <xsl:variable name="CurPosition" select="position()" />
                    <xsl:if test="($CurPosition &lt;= $rss_FeedLimit)">
                        <div class="item link-item simple-rss" >
                                <!-- render TITLE and link to item -->
                                <a class="rss-title" href="{ddwrt:EnsureAllowedProtocol(string(link))}" target="_blank">
                                    <xsl:value-of select="title"/>
                                <!-- format and render date -->
                                <div class="rss-pub-date">
                                        <xsl:when test="string-length(pubDate) &gt; 0">
                                                <xsl:when test="contains(pubDate, '+')">
                                                    <xsl:variable name="pubDateLength" select="string-length(pubDate) - 3" />
                                                    <xsl:value-of select="ddwrt:FormatDate(substring-before(pubDate, '+'),number($rss_LCID),3)"/>
                                                    <xsl:variable name="pubDateLength" select="string-length(pubDate) - 3" />
                                                    <xsl:value-of select="ddwrt:FormatDate(substring(pubDate,0,$pubDateLength),number($rss_LCID),3)"/>
                                            <xsl:value-of select="ddwrt:FormatDate(string(dc:date),number($rss_LCID),3)"/>
                                <!-- render description -->
                                <div class="rss-description">
                                    <xsl:value-of select="description" disable-output-escaping="yes"/>

    now i got this result:-

    where the RSS is showing the Title,Date & Description correctly.. but the problem i am trying to solve is that how i can hide/remove the additional links such as "Email this", "Add to","Digg This!" , etc... ??

    Friday, March 17, 2017 1:37 AM

All replies

  • Hi,

    I think you could try to hide the content by jQuery, fake code like:

    $('selector(like .class)').each(function(index){

                        $(this).css('display', 'none');             


    Here is the link about jQuery selector for your reference.

    Best Regards,


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Monday, March 20, 2017 3:57 AM