Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • pitxi_glass Friend
    #183404

    Hello, with JA_mero template and Joomla 2.58, I can only see 4 parameters

    ¿can I add more parameters?

    Thank you


    1. Sin-nombre
    Wall Crasher Developer
    #477546

    Hi pitxi_glass,

    Those paramters depend on specific template. In fact they are 4 groups, not 4 parameters.

    If you want to define a new parameter, it is not difficult. But, first, please think about what are you trying to do with new parameter.

    Here how to define a new group and parameter. (Those UPPERCASE texts are language keys)

    1. Define a new group
    <fieldset name=”custom1_params” label=”CUSTOM1_LABEL”>
    </fieldset>

    2. Define parameter in new group
    <field
    name=”inputBorderRadius”
    type=”text”
    default=”3px”
    class=”input-tiny”
    label=”CUSTOM1_ELEMENT_RADIUS_LABEL”
    description=”CUSTOM1_ELEMENT_RADIUS_DESC” />

    3. Define a LESS parameter with the same name as above @inputBorderRadius: 3px;

    4. Use @inputBorderRadius at somewhere in LESS file. It depends on you, just think how you want to use this parameter and how it affects to the template. It is required that you have some base knowledge about LESS and CSS

    For example, some where in some less files, you can define like this
    .modal-t3-signup {
    .border-radius @inputBorderRadius);
    }

    That all. Now, go to theme magic, the new parameter will be there in the new group.

    Regards

    pitxi_glass Friend
    #477574

    Thank you, but I have no knowledge of CSS… only need change font parameters…

    Wall Crasher Developer
    #478181

    Hi pitxi_glass,

    If you want to add font parameter for JA Mero, here the steps:

    1. Open templatesja_merotemplateDetails.xml and add block code below just before ‘</fields>’ (at line 132 in latest JA Mero version)

    <fieldset name="fonts_params" label="T3V3_THEMER_FONTS">
    <field name="baseFontFamily" default="'open_sansregular', sans-serif" label="BASE_FONT" description="BASE_FONT_DESC" />
    <field name="headingsFontFamily" default="'open_sans_lightregular', sans-serif" label="HEADING_FONT" description="HEADING_FONT_DESC" />
    </fieldset>

    2. Open file languageen-GBen-GB.tpl_ja_mero.ini and define some text for Language key.

    Now save your files and go to Theme Magic in backend, you should see the new group with two font parameters

    Hope it helps.

    Regards

    pitxi_glass Friend
    #478314

    Perfect, thank you very much

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

This topic contains 5 replies, has 2 voices, and was last updated by  pitxi_glass 11 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum