1

I want to add some custom styles to the ribbon on my site. I found This blog post and this thread.

I can't use SharePoint designer like in the tutorial, but I'm doing all the same things by hand. I create a style like this:

span.ms-rteElement-SmartPageElement{
 -ms-name:"Smart style";
 color:red;
 font-weight:bold;
 font-size:1.5em;
 font-family:Verdana;
}

And put it in ~sitecollection/_catalogs/Masterpage/CustomRibbonStyles.css I went into the master page and added a tag. Everything is checked in and published.

I see in my browser debugger that the css file is loaded and if I hand edit the source of my rich text column I see the styling. So all that is hooked up and working.

But I'm not seeing the choice in my ribbon.

Any ideas what is going on?

  • I just noticed that my site is only showing the out of the box Page Elements and none of the out of the box Text Styles. so that might be part of the problem. – Rothrock Apr 7 '16 at 19:59
  • hmm it looks like on custom new/edit forms my styles get messed up. Out of the box new/edit forms it is working. – Rothrock Apr 7 '16 at 20:29
  • Any luck with this? I have the same problem – Paul Lernmark Jul 7 '17 at 14:41
  • I didn't. But I might be working on it again in the future. – Rothrock Jul 7 '17 at 17:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.