-
AuthorPosts
-
checkmate40 Friend
checkmate40
- Join date:
- February 2008
- Posts:
- 104
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 15
- Thanked:
- 3 times in 1 posts
December 29, 2008 at 8:24 pm #136580Using Genistra and 1.5
How do I set the font size tool to incrase the font size even larger than it allows by default?
I’ve set the template font size to 6, but these old people want it even larger.
In templates/genistra/scripts/ja.script.js I changed:
var currentFontSize = 5;
function revertStyles(fontsize){
currentFontSize = fontsize;
changeFontSize(0);
}
function switchTool(name, value) {
createCookie(name, value, 365);
//window.location.reload();
window.location.reload();
return;
}
switchFontSize=function(ckname,val){
var bd = $E('BODY');
switch (val) {
case 'inc':
if (CurrentFontSize+1 < 12) {
bd.removeClass('fs'+CurrentFontSize);
CurrentFontSize++;
bd.addClass('fs'+CurrentFontSize);
}
break;
case 'dec':
if (CurrentFontSize-1 > 0) {
bd.removeClass('fs'+CurrentFontSize);
CurrentFontSize--;
bd.addClass('fs'+CurrentFontSize);
}
break;
default:
bd.removeClass('fs'+CurrentFontSize);
CurrentFontSize = val;
bd.addClass('fs'+CurrentFontSize);
}
Cookie.set(ckname, CurrentFontSize,{duration:365});equalHeightInit();
}
But it doesnt seem to effect the font size. Is there a different file I should be changing?
thx
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
December 30, 2008 at 8:38 am #284299Hi checkmate40,
To change the font size default, you have to go to Administrator -> Extensions -> Template Manager to edit this template. In the edit page, change the value of Font size dropdown to your requirement.
checkmate40 Friendcheckmate40
- Join date:
- February 2008
- Posts:
- 104
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 15
- Thanked:
- 3 times in 1 posts
December 30, 2008 at 6:09 pm #284347<em>@checkmate40 97166 wrote:</em><blockquote>
I’ve set the template font size to 6, but these old people want it even larger.
</blockquote>
I already went to Administrator > Extensions > Template manager and set the font size to 6 which is as high as it goes… I need it larger…
July 7, 2010 at 1:59 am #349167Overview, you need to edit these files:
1. CSS file: /css/template.css
2. JS script file: /js/ja.script.js
3. Template details: /templateDetails.xmlEdit the following by adding additional value sets or just change the font-size values.
File 1. (template.css)
Find:
body.fs6{
font-size: 15px;
}
Add: (change fs# and font size# in sequence… as many as you need.)
body.fs7{
font-size: 16px;
}
body.fs8{
font-size: 17px;
}
File 2. (ja.script.js)
Find:
case 'inc':
if (CurrentFontSize+1 < 6) {
bd.removeClass('fs'+CurrentFontSize);
CurrentFontSize++;
bd.addClass('fs'+CurrentFontSize);
}
break;
To match the additional font size sets placed in your CSS.
Change:
case 'inc':
if (CurrentFontSize+1 < 8) {
bd.removeClass('fs'+CurrentFontSize);
CurrentFontSize++;
bd.addClass('fs'+CurrentFontSize);
}
break;
File 3. (templateDetails.xml)
If you desire to set a higher default properly change sizes in joomla administration template settings.
Find:
<param type="spacer" default="Template Font Size" />
<param name="ja_font" type="list" default="3" label="Font size" description="FONT SIZE DESCRIPTION">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</param>
Add:
<option value="7">7</option>
<option value="8">8</option>
July 7, 2010 at 8:49 am #349210<em>@checkmate40 102601 wrote:</em><blockquote>I already went to Administrator > Extensions > Template manager and set the font size to 6 which is as high as it goes… I need it larger…</blockquote>
according to this way , you will be succesful , i always do it like this! -
AuthorPosts
This topic contains 5 replies, has 4 voices, and was last updated by freebase 14 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum