Forum Discussion
How do I change the default font size for wiki pages in SharePoint Online?
Hi Darin Hawley,
Are you asking for help with the css or how to apply css?
If you have a wiki page you could add some css to that page ( but of course that means that you will have to add a page every time)
You could add a custom web part with the requried css included that can be added to a page where you want to make css changes.
If you want this to be site collection dependend then you could go to the root site , Site Settings -> Master Page -> Alternate CSS Url.
If you want this to be site dependend then you could go to the site where you want to apply the css -> Site Settings -> Master Page -> Alternate CSS Url.
- Darin HawleyJan 03, 2017Copper Contributor
If there is a CSS file somewhere that could be modified to solve the problem, perfect. Again, would prefer not having to touch every wiki page to make this work. I think I located what you were talking about at Site Settings > Master Pages. From there I see a list of files...
__DeviceChannelMappings.aspx
minimal.master
oslo.master
oslo.preview
seattle.master
seattle.preview
v4.masterI'm using Seattle theme, and if I Edit Properties for that file I see a field labeled "Default CSS File" with a value of "corev15app.css". I assume I would need to modify that CSS file, or provide an alternate value, but I'm not sure where the CSS file is located or whether updating the value here would have the intended effect. Will I need to edit a master page? If so, what is the scope of pages impacted? I've been told editing master page is a no-no, and not allowed by our admin.
- Jan 03, 2017You would need to create a custom css which just includes the class responsible for the text inside the wiki zone. The existing files should indeed not be modified.
If you need help with this I can have a look at this tomorrow. I am currently not near a pc.- Jan 04, 2017
you could create a custom.css file with the following content:
#ctl00_PlaceHolderMain_PageContent__ControlWrapper_RichHtmlField { font-size: 20px; }
Store this css file anywhere wihtin the site collection in sharepoint where everybody has access.
Then within the location mentioned above reference this css file.