Hot answers tagged

4

You need the following piece of CSS to ensure that the menu items on the global navigation menus do not break into multiple lines and that the width of the drop-down menu extends to fit the length of the menu items' text: /* Disable menu text wrapping. */ #DeltaTopNavigation ul.dynamic { white-space: nowrap; word-wrap: normal; width: auto !important; ...


3

All content editors are rendered as part of single HTML document. CSS styles don't have scope, they affect entire page. It's a common practice to use content editors to hide SharePoint UI elements (like ribbon buttons) that are not part of the web part. You can create single root elements per each CE and assign ID value: <div id="navigation-div"> ...


2

To fix the problem with the text getting out of the box, use the following solution: ul.dynamic { width: auto !important; white-space: nowrap; } Source: http://blog.sharepointexperience.com/2014/10/increase-width-sharepoint-drop-down-navigation/


2

Get-SPWebApplication "http://MyServer/" | Get-SPSite -Limit All | Get-SPWeb -Limit All | % { $_.AlternateCssUrl = ($_.Site.Url + "/SiteAssets/DevColorChange.css");$_.Update() }


2

One of the properties of SPSecurityTrimmedControl is PermissionContext. Not sure what the default is, but you may try and set it to "RootSite" or "CurrentSite" according to where you want the permissions to look when opening a site. Possible values are: PermissionContext.CurrentFolder PermissionContext.CurrentItem ...


2

Use SharePoint Designer to update files. Open your uploaded files in SharePoint Designer, Update it and save. No need to manually upload it again.


1

Yes, it is possible to create custom HTML, Javascript and CSS in your SharePoint site. A tool called SharePoint Designer is also available that shall help you to perform this. It is suggested that rather than this IDE it would better if you would use SharePoint Designer as it is designed for SharePoint specifically. You would be able to download this ...


1

Let's see how the page should work. When you select a web part in the Add Web Part gallery, a preview of the web part is displayed on the right panel (it would appear where the error message is). This means that SharePoint has to render a part of the web part to be able to display such preview - this is why the OnInit method is run. As for the .IsPostBack ...


1

Make the menu items stretch: span.menu-item-text { display: inline-block; white-space: nowrap; } Make the container resize to fit: ul.dynamic { width: auto!important; }


1

You could use the audience targeting feature and only show the webpart to the audiences that are allowed to view the content: On the "advanced" section of the web part tool pane you can specify a target audience. Make sure to include any groups that have access to the underlying content in your promoted links list. With this feature configured, the webpart ...


1

Trying setting the z-index of your dropdowns to a high value. That should allow it to show on top of the web part and the rest of the page.


1

This would only work as long as you have the English version going on li[text="Site contents"]{display:none;}


1

Look for "PlaceHolderQuickLaunchBottom" content-place holder in your custom master page and comment out the DIV tag as shown in the below link. https://social.technet.microsoft.com/Forums/office/en-US/5d30118a-8be7-4ed7-9f0d-b40ecf1054fd/a-menu-item-called-site-contents-on-the-left-site-menu-of-my-site?forum=sharepointgeneral



Only top voted, non community-wiki answers of a minimum length are eligible