Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • checkmate40 Friend
    #136580

    Using 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 Moderator
    #284299

    Hi 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 Friend
    #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…

    nickamcq Friend
    #349167

    Overview, you need to edit these files:
    1. CSS file: /css/template.css
    2. JS script file: /js/ja.script.js
    3. Template details: /templateDetails.xml

    Edit 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>

    freebase Friend
    #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!

Viewing 5 posts - 1 through 5 (of 5 total)

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