Creating a unique paragraph style for my blog in SharePoint 2013 - step by step guide!

Managing a Share Point 2013 web site with a blog presents the challenge of incorporating special text content in posts. To ensure consistency, it's essential to add additional styles that can be applied to all posts. Normally, these styles are accessed from the top ribbon bar when creating a new post.

Looking to add a new style in Share Point Designer 2013? Wondering what steps to take? Let's explore how to enhance the design of your posts!

Answer №1

If you're seeking personalized designs for the SharePoint RichText editor, the good news is it can easily be achieved by implementing custom CSS. SharePoint will automatically display the new text styles once the custom CSS is added. This customization can also be done through SharePoint Designer, especially if you have a customized master page or specify the alternate CSS location.

The CSS code for this "magical" transformation looks something like this:

.ms-rteStyle-CustomStyle1 {
    -ms-name: "Custom Style 1";
    font-weight: bold;
    color: blue;
}
h2.ms-rteElement-TitleStyle {
    -ms-name: "Title Style";
    font-weight: bold;
    color: purple;
}

The distinction between rteElement and rteStyles lies in how you apply styles to specific elements or text passages. By examining the Page Elements and Text Styles in your SharePoint environment, the difference becomes clearer as one targets elements like H1, H2, and SPAN, while the other focuses on styling text within a span tag.

For further guidance and instructions, here are a few insightful blog articles to kickstart your customization journey:

  • Enhance Your SharePoint Experience with Custom Ribbon Styles
  • Unleash Your Creativity: Customize Rich Text Editor Styles in SharePoint
  • Breaking Boundaries: Implementing Custom Styles in SharePoint 2013

Answer №2

Give this code a shot to personalize your heading and text

h2.ms-rteStyle-customHeading
{-ms-name:"custom heading";
 font-size: 22px;  
 color:gray;  }

.ms-rteElement-customText 
-ms-name:"custom text";
{color:black; }

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Adjusting the rotation transform by deleting and reapplying canvas is causing the chart to not display data after redrawing

I am facing a challenge with my previous issue and I am exploring different solutions. One approach I am considering is to remove the canvas element completely and then re-add it, effectively resetting all rotations on the canvas. Although this method alm ...

I'm looking for a Visual Studio add-in that can identify and flag any unused CSS classes or IDs within the entire solution

Exactly as the headline suggests. If not, what are some reliable online services you've tried for decluttering oversized stylesheets? ...

`Unaligned headers`

Encountering an issue with jQuery DataTables where the header of the table is not aligned properly with the body when the table has a horizontal scroll bar and the width is increased. Here is the original datatable without resizing: And here is the datat ...

Creating two columns with separate scrollbars in Responsive Bootstrap is a useful feature for organizing content in a visually

Is there a way to create 2 columns with scrollbars using Bootstrap when a button is clicked? Here's what I'm trying to achieve: My webpage consists of a row-fluid div that contains the main-column div with main-content and extra-content. There&a ...

Unexpected issue with Ajax call execution

I am facing an issue with my ajax call as it is not behaving as expected. The browser is throwing an error message saying "jquery-1.10.2.js:8157 Uncaught TypeError: Cannot read property 'FileGuid' of undefined". I have set breakpoints in my CS fi ...

Incorporate audio playback on image click using JavaScript, with the feature to automatically pause the playback if multiple images are playing simultaneously

<img class="cl" src="photo/198.jpg"/></br> <audio class="cs" controls> <source src="audio/198 banu nagamothu.mp3" type="audio/mpeg"> </audio> I prefer not to have audio controls initially, but when the image i ...

Using CSS with absolute positioning and dynamic height

There are 4 consecutive <div> tags in absolute position, aligned using top and left. The third div tag has dynamic content, causing its height to adjust based on the text within it. However, since the top and left properties are set for all divs, th ...

Position flex-box items to align with the baseline of the final line of text within a block

I am attempting to replicate the layout shown in the final example of the image linked below using flexbox. https://i.sstatic.net/KSaig.png It seems that the align-items: baseline; property works perfectly when the blocks contain only one line of text. ...

What causes the circular progress bar to disappear when hovering over the MUI React table?

My goal was to create a table with a CircularProgressBar that changes its background color from orange to dark blue when hovering over the row. However, despite my efforts, I couldn't get it to work as intended. Additionally, I wanted the progressBar ...

Learn the trick to making specific words appear bold in Select2 by changing the font style

I'm currently working with select2 version 4.0.1, and I have a requirement to modify the font for specific words. In particular, I want to display codes AK and HI in a different/bolder font style, similar to the example below: <select id="select2" ...

The issue of an empty URL parameter in ASP.NET leading to an unhandled exception error in a web form (

I've encountered a new problem recently where passing empty url parameters to an aspx page is resulting in a new exception. The page load function is throwing a null reference exception which I assumed would have been handled by the page load itself. ...

Is there a way to properly center this text vertically within the row?

The kids are like puzzle pieces. I've experimented with different classes like justify-content-center, align-items-center, and text-center, but no luck. All I want is for the text to be perfectly centered both vertically and horizontally within the ...

eliminate gaps between hyperlinks using cascading style sheets

I developed a webapp for iOS which has a specific page containing a centered div with 3 buttons. Inside this div, there is a total of 460px with each link measuring as follows: the first and last are 153px while the middle one is 154px. The main issue ar ...

Get a polished look using HTML and CSS exclusively

Allow me to illustrate what I am intending to accomplish with an example. div{ width:100px;height:100px; border:3px solid #900; border-radius:0px 0px 140px 0px; } <div></div> I am seeking a method to ...

What is the reason that elements with % properties totaling 100% do not align next to each other?

I've been attempting to arrange two blocks side by side within another block, but they just don't seem to fit together smoothly. What could be causing this issue? .container {height: 200px; width: 400px; background:darkgrey;} .left {height: 100% ...

What is the best way to mirror an image using CSS3?

I'm looking to create a minimalist front page for my wife's jewelry website. I envision a simple layout with a blurred background and a sleek title at the top. In the center of the page, there will be several sections dedicated to different types ...

Conceal an element from view upon clicking on it

Task at Hand : Implement a smooth element hiding effect upon clicking, similar to the behavior on this website , where the letter A fades away smoothly when clicked. Is it possible to achieve this effect using only HTML, CSS, and JavaScript? var t ...

The loading of script files is not working properly in an AngularJS web API application

After developing an application in angularjs that utilizes angular routing for calling web api services, everything functions properly when run from visual studio. However, upon deploying the application on an IIS web server, the script files fail to load ...

Issue with a responsive CSS circle element that holds an image

I'm struggling to figure out how to create 9 responsive CSS circles in a row, with each circle containing an img tag rather than a background image. The goal is to center the img and resize it based on the size of its parent circle div. These 9 circle ...

Arranging CSS text in a parallel format and aligning it vertically

I am working on a layout with two columns of text placed side by side, where one column is right aligned and the other is left aligned. Below is my current code: .alignleft { float: left; } .alignright { float: right; } .list-unstyled { padding ...