Default font & size for announcements
-
Friday, January 13, 2012 5:15 PMI setup a new Announcements list and the default font is set to 8 pt. How can I change the default font setting so my staff are not complaining its too small?
Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.
All Replies
-
Friday, January 13, 2012 6:21 PM
The only easy way is to update the stylesheet, you can know the classes used using the developer tool in IE by pressing F12.
The CSS file can be uploaded to any document library and refrenced from Site Master Page settings if you have the Publishing feature enabled. Also (I'm not sure) you can change it from the themes.
-
Friday, January 13, 2012 6:31 PM
If you want to change the fonts in just one web part, see:
http://techtrainingnotes.blogspot.com/2011/06/sharepoint-2010-add-colors-borders-and.html
Mike Smith TechTrainingNotes.blogspot.com -
Friday, January 13, 2012 11:16 PM
Osama, I have SharePoint Foundation and I am not sure the Publishing feature is available?
I have done very little to nothing when it comes to customizing the page display so I am not sure how to proceed. Is there a resource that can provide a bit more instructions on how do do this.
Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties. -
Friday, January 13, 2012 11:20 PM
This will be a good read, but I was actually trying to just set the default font in the NewForm for the announcement.
When someone opens the NewForm the font is 8pt which is pretty small, I am wanting to make the default 10 or 12 if possible.
Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties. -
Saturday, January 14, 2012 12:57 AMHi, just override the class name which i applying the font size 8pt, to find the class name just open the page and check with IEDeveloper Tool
Anil -
Monday, January 16, 2012 4:38 PM
connect to your site from SharePoint Designer, open the DispForm.aspx for the Announcement list.
Switch to Advanced Mode, then search for "PlaceHolderAdditionalPageHead"
Add this style inside the ContentTemplate:
<style>
.ms-rtestate-field{
font-size:x-large;
}
</style>Do the same for any class that you want to update.
You can also update the v4.master incase you want to make your update to all the text in the page. you can add the link to the css file there.
- Edited by Osama Mourad Monday, January 16, 2012 5:11 PM
- Marked As Answer by Stunpals Monday, January 16, 2012 5:52 PM
-
Monday, January 16, 2012 5:52 PM
Thanks, that seems to work, but the "x-large" turns out to be about 18 pt a bit bigger than I wanted.
I did a search and found I can use:
"12pt" instead of "x-large".
Thanks again.
Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties. -
Monday, January 16, 2012 7:36 PMSure you can add any font size, it is a normal StyleSheet, I just make it x-large to be clear.
-
Tuesday, May 01, 2012 7:58 PM
Osama,
I'm running into the same issue - do you put this code into the HTML code or do you have to somehow open the content template?
Beth
-
Wednesday, May 02, 2012 3:32 PM
bfvball14 if I recall what I did
- you just open it in SPD
- go to the list
- create a new EditForm.aspx
- switch to code view
- search "PlaceHolderAdditionalPageHead"
- add the <style> as Osama described (eg below)
<asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server"> <SharePoint:UIVersionedContent UIVersion="4" runat="server"><ContentTemplate> <SharePoint:CssRegistration Name="forms.css" runat="server"/> <style> .ms-rtestate-field{ font-size:10pt; } </style> </ContentTemplate></SharePoint:UIVersionedContent>Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

