Forum Discussion
How do I change the default font size for wiki pages in SharePoint Online?
The default font size for wiki pages in SharePoint Online seems much too small. How do I change this? Will it affect the entire tenant, or can it be localized to one site collection or sub-site? Thanks!
6 Replies
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 HawleyCopper 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.
- You 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.
- Chris GullicksenIron Contributor
Hello,
The font presets seem to inhert from the site theme that includes what the default fonts will be. The nice thing about the wiki pages is that anyone who edits them can freely change the formatting as needed.
Another option may be to explore the fonts related to the Themes you use on your sites. More info: https://technet.microsoft.com/en-us/library/ee424397.aspx
- Darin HawleyCopper Contributor
I'm definately looking for a solution that doesn't require authors to change the font for each page. I poked around at themes, but didn't find ability to change font size, just font face. Perhaps I would need to create a custom theme? Will need to research how to do that, and understand what it would impact.
I have a sub-site that is part of a larger collection and would want to avoid affecting the rest of the collection. If impacting the rest of the collection, I would just need to coordinate with that person. But if affecting entire tenant, much more difficult challenge.