How to prevent RSS Viewer web part from overriding list-item CSS style?

I am using SharePoint Online. I have a web part page with a number of web parts with links. Font size of the links is ~12px.
If I add an RSS Viewer web part to the page, then it overrides the 'list-item' class CSS Style to something like 8px, which is unreadable.
To correct this I have tried the following:
1. Added the following code to a Script Editor Web Part on same page:
<style type="text/css">
.item link-item
font-size:20px !important;
.link-item
font-size:20px !important;
</style>
2. Completely deleted all XSL from the RSS Viewer web part and replaced it with very simple formatting code which format the links within the RSS web part to 16px - but still the other links are set to 8px.
3. Linked a custom style sheet to the relevant master page and set the link-item classes in there, ensuring that it is executed after the standard SharePoint css.
...but nothing works!
It appears that, as soon as the RSS Viewer web part is added to the page it overrides the list-item style and then will not release it even if all the XSL within the web part is deleted!
On deleting the RSS Viewer from the page and saving it, the links font size returns to normal.
Does anyone have a fix/work around for this?
Thanks in advance,
Jimmy

Hi Jimmy,
I recommend to use “.link-item a” instead as the code below to change the font size of the links:
<style>
.link-item a
font-size:20px !important;
</style>
And I tested the code above in my environment and it worked fine.
Best regards,
Thanks
Victoria Xia
TechNet Community Support

Similar Messages

  • RSS Viewer Web part not working after installing kb2767793

    Hi,
    I just patched our sharepoint farm with kb2767793 - after installing this CU the RSS Web part is no longer loading as expected on our pages, it just keeps trying to load forever.
    If I choose to edit the page the RSS feed loads with no issues when in edit mode. When going back to published view I experience the same issue.
    The symptom is only present if the page contains more web parts eg Content Query Web part. If I create a page with only the RSS viewer web part it functions as expected.
    Has anyone experienced this or has any suggestions? 
    Thanks,
    Luke

    We have the same issue after installing the April security updates.
    I opened a support case with Microsoft and they proposed these using one of these solutions (see below).
    Unfortunately these did not work for us.
    Summary
     Page Level: add a CEWP to the page and add the following custom script to it:
    Save the following JavaScript to a .txt file and upload the file to any document library in the root of the site. 
    <Script Type="text/javascript"> 
    function CustomUpdateFormDigest() 
    if(window._spPageContextInfo != null) 
    var $v_2 = window._spPageContextInfo; 
    var $v_3 = $v_2.webServerRelativeUrl; 
    var $v_4 = window._spFormDigestRefreshInterval; 
    UpdateFormDigest($v_3, $v_4); 
    CustomUpdateFormDigest(); 
    </Script>
    Adding the above script to the Master Page
    3)     Web Application Level:
    Turn off Security Validation for the pages from Central Admin -> Web Application -> General Settings.
    Gncntry

  • How do you remove a web site from popular list?

    How do you remove a web site from popular list?

    luckyfromhialeah wrote:
    How do you remove a web site from popular list?
    If you mean from the Safari menubar item "Popular"
    Choose "Show All Bookmarks" from the Bookmark menu in the main menubar, or click the icon for that in Safari's menubar -
    The page that opens should show a list of Bookmarks. In the Left column, click the item under Collections named Bookmarks Bar.
    In the new view, locate the folder named Popular and click the reveal triagle to the left of its name - it will open and reveal all the items listed in Popular.
    Find the one you want to remove, click it once to select it, then press the Delete key on the keyboard.

  • How to refresh Report viewer web part programatically using C# in SharePoint?

    I have used Report viewer web part in SharePoint page, I want to refresh it programmatically. How can I achieve this? I have tried approach mentioned on
    http://nicholasfaiello.wordpress.com/2012/12/28/report-viewer-web-part-programmatically-refresh-a-report/ site, but it is not working.

    Hi,
    How about using JavaScript to perform page reloaded or just trigger the click event of the refresh button with the Report View Web Part? It could be seen as a kind of workaround
    for auto refreshing.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/b0b6d11d-07c8-4b4d-bd69-ec60e85e0678/sharepoint-report-viewer-web-part-parameter-issue-not-refreshing?forum=sharepointgeneralprevious
    http://richmintzbi.wordpress.com/2011/06/21/auto-refresh-ssrs-reports-part-ii/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Items to display in list view web part not showing the items setup

    Hi, I have the following issue. I have a list view web part, but the web part is showing more items that the ones setup in the: Number of items to display in list view web part for this view.
    It is because that works when using datasheet view and not a normal view? Is there any technical documentation from Microsoft supporting this?

    thank you for your answer. It is interesting that the mobile view with the items to show in the mobile view doesn't work in the webpart, but it works when you are using datasheet view, but if you uncheck to activate the mobile view, then, the webpart doesn't
    show information, so, it works partially because one part works and not the other.

  • How do you remove a web address from compatibility view option using a script?

    How do you remove a web address from compatibility view option in IE using a script or a GPO? 
    Not seeing any options.
    Casey
    This topic first appeared in the Spiceworks Community

    luckyfromhialeah wrote:
    How do you remove a web site from popular list?
    If you mean from the Safari menubar item "Popular"
    Choose "Show All Bookmarks" from the Bookmark menu in the main menubar, or click the icon for that in Safari's menubar -
    The page that opens should show a list of Bookmarks. In the Left column, click the item under Collections named Bookmarks Bar.
    In the new view, locate the folder named Popular and click the reveal triagle to the left of its name - it will open and reveal all the items listed in Popular.
    Find the one you want to remove, click it once to select it, then press the Delete key on the keyboard.

  • XSLT List View Web Part Layout

    Hello,
    In Visual Studio 2013 i'm working with the 'XSLT List View Web Part' to show lists i have created with the list item in VS.
    Is there anyway i can modify the view,group or order with ClientSide code as jquery, javascript ?
    I'm new in the app development for Sharepoint.
    I'm trying to find out what options i have. i Don't find much information on the web about this.
    Kind Regards,
    Kris

    Check if below can help you:
    http://www.bing.com/videos/watch/video/using-javascript-and-jquery-for-sharepoint-2013/10tiqat8f
    http://aaclage.blogspot.in/2013/08/example-how-to-use-accordion-jquery.html

  • Issue in treeview control along with page viewer web part showing the sub sites from MMS

    hi,
    Am having a treeview control populates  with values from  MMS - Managed Metadata Service.
    [ Products ]
    ----->ms office 
                ----->word
                ----->excel
                 ---->powerpoint
    -------->Collaboration
                     ---->   sharepoint 2003
                     ---->  moss 2007
                     ----> sp 2010
                     -----> lync
     all these  values excel, word, powerpoint are sub sites created under ms-office site collection.
    and  sharepoint 2003, mos 2007, sp 2010, sp 2013 are  sub sites created under collaboration.
    now, on the page load, end user clicks on word and he should navigate to the  sub site "wordsite"  and it should show the home page of word sub site.
    we have created a  page viewer web part and  assigned the url property of the page viewer to the sub site url.
    but the issue is, when end user clicked  on the child node "powerpoint", the  page did a Post Back and treeview control immediately collpased and it shows the Products [top level - parent node] only.
    Am unable to set the current selected value- ie  here its excel and show the excel node in the trewview.
    how can i get this child tree node as the selected node.
    help is  highly appreciated!

    Check if below can help
    http://thechriskent.com/2012/05/09/changing-the-default-expansion-of-metadata-navigation-on-initial-page-load/

  • Cannot create mysites from powershell: Original XSLT List View Web Part not found

    I have a bizarre problem in my SharePoint 2013 farm. This does not occur in my test farm, only in the farm we were going to go live with.
    I'm on windows Server 2012, SQLServer 2012 SP1, SharePoint 2013 April CU. 1 appserver/centraladmin server, 2 web servers.
    When I log into our mysitehost and click newsfeed, it will create a mysite (even though first it displays "we are sorry there was a problem creating your site")
    But from powershell, whether I use $UserProfile.CreatePersonalSite() or New-SPSite, I get the following error:
    Original XSLT List View Web Part not found
    So far I've only found one other person with this:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2503e42c-e114-4e89-8e00-89fe70f0b154/cannot-create-sharepoint-mysite-programmatically
    This is a brand new farm, created with the same scripts I created my test farm with, and same version of SharePoint. Only the service accounts are different. (Farm account has admin on the servers right now since I was setting up profile service).
    Some other errors from the same correlation ID that look related:
    It can't seem to find the listemplate 101
    And something looks wrong with the MySiteDocumentLibrary feature
    I have tried the following:
    1. run psconfig.exe on each server
    2. install-spfeature -AllExistingFeatures
    3. looped through the directory under Features and for each called Install-SPFeature $dirname -Force
    4. uninstalled and reinstalled MySiteDocumentLibrary feature
    5. blew away the whole farm (removed all servers from farm, deleted all databases) and recreated it.
    6. tried creating the UPA from the CentralAdmin gui.
    The only real difference I can think of between the working farm and non working farm is, I installed the working farm using RTM, then as they came out added the March PU and April CU. For this farm I installed RTM and March and April, and then ran my build
    farm script.
    I am at a loss. What do I need to do, re-install the binaries? That's all I can think of. What I love is that our test / POC system worked fine, and now 2 weeks before go-live I'm seeing errors on the production servers I've never seen before. Using the
    same scripts no less.
    Feature Activation: Feature 'Fields' (ID: 'ca7bd552-10b1-4563-85b9-5ed1d39c962a') was activated
    Feature Activation: Feature 'CTypes' (ID: '695b6570-a48b-4a8e-8ea5-26ea7fc1d162') was activated
    No document templates uploaded for list "$Resources:core,global_onet_solutiongallery_list;" -- none found for list template "100"
    Failed to find <ListTemplate> tag corresponding to ID "101", tried both onet.xml for site definition ID "0" language "1033" and global site definition. Operation failed.
    No document templates uploaded for list "$Resources:core,stylelibraryList;" -- none found for list template "121".
    System.Runtime.InteropServices.COMException: A user may not remove his or her own account from a site collection.<nativehr>0x81020051</nativehr><nativestack></nativestack>, StackTrace: at Microsoft.SharePoint.SPUserCollection.UpdateMembers
    Feature Activation: Feature 'MySitePersonalSite' (ID: 'f661430e-c155-438e-a7c6-c68648f1b119') was activated
    Feature Activation: Activating Feature 'MySiteDocumentLibrary'
    Calling 'FeatureActivated' method of SPFeatureReceiver for Feature 'MySiteDocumentLibrary'
    SharePoint Foundation Upgrade MySiteDocumentLibraryFeatureReceiveraj08n INFO Creating new My Documents library
    Unknown SPRequest error occurred. More information: 0x80070002
    SPRequest.GetMetadataForUrl: UserPrincipalName=, AppPrincipalName= ,bstrUrl=http://contoso/personal/cbuchholz/DOCUMENTS ,METADATAFLAGS=59
    System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>, StackTrace: at Microsoft.SharePoint.SPWeb.GetObjectForUrl at Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryUtil.GetSPObjectFromUrl ...
    <nativehr>0x80070002</nativehr><nativestack></nativestack>There is no Web named "/personal/cbuchholz/DOCUMENTS"
    Possible mismatch between the reported error with code = 0x81070504 and message: "There is no Web named "/personal/cbuchholz/DOCUMENTS"." and the returned error with code 0x80070002.
    Attemping to add webpart id 0F6072F2-E804-4CFD-837E-BB37332B9D1C to web http://contoso/personal/cbuchholz
    Adding XsltListViewWebPart calling SPRequest::CreateListViewPart. Web part id 0F6072F2-E804-4CFD-837E-BB37332B9D1C, web http://contoso/personal/cbuchholz
    Feature receiver assembly 'Microsoft.SharePoint.Portal, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c', class 'Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryFeatureReceiver', method 'FeatureActivated' for feature 'e9c0ff81-d821-4771-8b4c-246aa7e5e9eb' threw an exception: System.InvalidOperationException: Original XSLT List View Web Part not found at Microsoft.SharePoint.Portal.UserProfiles.MySiteDocumentLibraryUtil.ReplaceListViewWebPart
    Feature Activation: Threw an exception, attempting to roll back. Feature 'MySiteDocumentLibrary'
    Exception in EnsureFeaturesActivatedAtSite: System.InvalidOperationException: Original XSLT List View Web Part not found
    Failed to activate site-collection-scoped features for template 'SPSPERS#2' in site collection 'http://contoso/personal/cbuchholz'
    Failed to apply template "SPSPERS#2" to web at URL "http://contoso/personal/cbuchholz
    I've had other problems in this farm: the bug where when you add Administrators to a Search Service via the Manage Service Applications page, it removes the SPSearchDBAdmin role from the search service process account. That one did not happen in the other farm.
    At least other people have that one and I could just use the farm admin instead (still troublng of course).

    Ok,
    Here is the problem:
    When creating a mysite from powershell or script, apparently you can ONLY do this from a wfe (or a server running Microsoft SharePoint Foundation Web Application in services on server).
    You CANNOT create mysites from script on your appserver if it is not also a Web Application Server. I confirmed the same is true in my test farm. I guess I was always running most of these scripts on the webserver.
    I searched all over and cannot find this documented anywhere.
    Who do I contact to have Microsoft document this?
    It's Thursday morning, I've been working non stop since Saturday morning so you don't have to :)

  • Files access report from List View Web Part

    Hi,
    I have a list,inside the list there are some folders and inside the folders there are some files.
    This list has been added to the aspx page as a list view web part.
    Now our requirement is to generate report on monthly basis of logged in user who accessed folders/files from the webpart.
    Is this possible through OOB/customisation please let me know.
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi, 
    Did you check this link? If not please refer it. They are talking exactly what do you want in your requirement. 
    http://office.microsoft.com/en-in/sharepoint-server-help/view-audit-log-reports-HA102039795.aspx
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • Event Receiver to get folder Names from List View Web Part

    Hi,
    We have a requirement i.e.
    On one of the page,there are some folders on the list view web part.
    Now through event receiver i should pick the folder names from list view web part and
    update the same in the list.
    If that names already exists in the list then we should leave without updating,if not we have to add folder name in the list.
    Please share your ideas regarding the same.
    Regards,
    Naga Sudheer M
    Thanks & Regards, Sudheer

    Hello,
    LVWP is just for displaying content of site so you need to associate your event receiver with actual list/library. You can create ItemAdded event receiver to check existing folder and create new if not existing. "sk2014" links are good to start.
    http://sharepoint.stackexchange.com/questions/59788/change-name-in-itemadding-event-receiver-or-create-a-new-item
    Let us know in case any doubt
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How do I remove the grouping headings in my list view web part?

    I don't have access to SharePoint Designer and so far, that is all I can find that people are saying to use.  I understand and know how to edit the HTML in SharePoint, just don't know what code to put in and where exactly to put it so that the Document
    Library List View web part is grouped how I want, but doesn't actually show the group titles.  Any help would be greatly appreciated.  Thank you!

    Hi,
    I understand that you want to hide list view group headers, based on your description, I can suggest as follow:
    Add this code to a Content Editor Web Part (CEWP) in the list view. Adding a CEWP in a SharePoint 2010 list view will unfortunately remove the list view selector.
    <script type="text/javascript" language="javascript">
    _spBodyOnLoadFunctionNames.push("HideHeaders");
    function HideHeaders()
    var elements = getElementsByClassName(document, "td", "ms-gb");
    var elem;
    for(var i=0;i<elements.length;i++)
    elem = elements[i];
    elem.childNodes[3].style.display = "none";
    elem.removeChild(elem.childNodes[4]);
    elements = getElementsByClassName(document, "td", "ms-gb2");
    for(var i=0;i<elements.length;i++)
    elem = elements[i];
    elem.childNodes[3].style.display = "none";
    elem.removeChild(elem.childNodes[4]);
    elements = getElementsByClassName(document, "tr", "ms-viewheadertr");
    for(var i=0;i<elements.length;i++)
    elem = elements[i];
    elem.style.display = "none";
    Written by Jonathan Snook, http://www.snook.ca/jonathan
    Add-ons by Robert Nyman, http://www.robertnyman.com
    function getElementsByClassName(oElm, strTagName, strClassName){
    var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
    var arrReturnElements = new Array();
    strClassName = strClassName.replace(/\-/g, "\\-");
    var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
    var oElement;
    for(var i=0; i<arrElements.length; i++){
    oElement = arrElements[i];
    if(oRegExp.test(oElement.className)){
    arrReturnElements.push(oElement);
    return (arrReturnElements)
    </script>
    More information:
    http://edinkapic.blogspot.in/2008/06/hiding-list-view-group-headers.html
    http://spjsblog.com/2011/08/30/remove-group-label-in-grouped-list-view/
    If you have any questions, please reply me.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • How to Hide some Rows in a List view Web Part using JavaScript ?

    How to Hide some Rows in a List view Web Part using JavaScript ?

     Here is the code that worked for me:
    var Elements = document.querySelectorAll('div[id=WebPartWPQ3] table[class=ms-listviewtable]>tbody tr .ms-vb-lastCell.ms-cellstyle.ms-vb2')
    for(var i=0, n = Elements.length; i < n; i++)
     if(Elements[i].innerHTML=="India")
    Elements[i].parentNode.setAttribute("style","display:none")
    WebPartWPQ3 -> ID of webpart Div
    ms-listviewtable -> class name of table in Div
    ms-vb-lastCell.ms-cellstyle.ms-vb2 -> classname of td to get text

  • How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM.

    How to add SharePoint 2013 Promoted link list view web part in page programatically with Tiles view using CSOM. I found that it can be
    done by using XsltListViewWebPart class but how can I use this one by using shraepoint client api.
    shiv

    Nice, can you point me to the solution please ?
    I'm  trying to do this but I get an error : 
    Web Part Error: Cannot complete this action. Please try again. Correlation ID: blablabla
    StackTrace:    at Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews)     at Microsoft.SharePoint.SPList.GetView(Guid viewGuid)   
    All help really appreciated.

  • How do I set the scope to recursive in the Data View Web Part in SP 2013?

    How do I set the scope to recursive in the Data View Web Part in SP 2013?
    I have items in folders that I would like to display in the data view web part out of their folders.  I know that I need to set the scope to recursive.  I found documentation on how to do it in 2010, but since they removed all views other than
    the code view, I am unsure about how to do so.
    Link to article describing how to do what I am trying to do in 2010:
    https://www.nothingbutsharepoint.com/2009/05/13/data-view-web-part-folders-part-2-aspx/

    Hi,
    In SharePoint Designer 2013, we can click the code of the Data view web part. Then switch the tab to "OPTIONS". And then we can find the Folder Scope option, you can select "Show All Files of All Folders"
    to achieve your requirement.
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

Maybe you are looking for