Default font & size for announcements
-
vendredi 13 janvier 2012 17:15I 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.
Toutes les réponses
-
vendredi 13 janvier 2012 18:21
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.
-
vendredi 13 janvier 2012 18:31
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 -
vendredi 13 janvier 2012 23:16
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. -
vendredi 13 janvier 2012 23:20
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. -
samedi 14 janvier 2012 00:57Hi, 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 -
lundi 16 janvier 2012 16:38
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.
- Modifié Osama Mourad lundi 16 janvier 2012 17:11
- Marqué comme réponse Stunpals lundi 16 janvier 2012 17:52
-
lundi 16 janvier 2012 17:52
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. -
lundi 16 janvier 2012 19:36Sure you can add any font size, it is a normal StyleSheet, I just make it x-large to be clear.
-
mardi 1 mai 2012 19:58
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
-
mercredi 2 mai 2012 15:32
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.

