-
AuthorPosts
-
December 25, 2012 at 12:08 pm #183404
Hello, with JA_mero template and Joomla 2.58, I can only see 4 parameters
¿can I add more parameters?
Thank you
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
December 26, 2012 at 9:09 am #477546Hi 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
2 users say Thank You to Wall Crasher for this useful post
December 26, 2012 at 5:25 pm #477574Thank you, but I have no knowledge of CSS… only need change font parameters…
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
January 3, 2013 at 1:19 am #478181Hi 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
1 user says Thank You to Wall Crasher for this useful post
January 3, 2013 at 6:17 pm #478314Perfect, thank you very much
AuthorPostsViewing 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
Add parameters to Theme Magic
Viewing 5 posts - 1 through 5 (of 5 total)