Hello,
I am trying to add a parameter to ThemeMagic but am experiencing the following problems:
1 - The language strings are not working
2 - entering a color in the default colour background field doesn't work
The code I'm using in each file is shown below. Hopefully, you can tell me what the problem is.
Have added these variables in THEME folder variables.less file
@navbar-default-bg: lighten(@brand-primary, 20%);
@navbar-default-link-active-bg: darken(@navbar-default-bg, 6.5%);
Have added the following code to the THEME template.less file
// Navbar
// ----------------------------------------
.navbar-default {
background-color: @navbar-default-bg;
border-color: @navbar-default-border;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: @navbar-default-link-active-color;
background-color: @navbar-default-link-active-bg;
}
Have added this parameter in the thememagic.xml file
<fieldset name="navbar_params" label="T3_TM_NAVBAR">
<field name="t3-navbar-default-bg" type="color" class="t3tm-color"
label="T3_TM_VARS_NAVBAR_DEFAULT_BG_LABEL"
description="T3_TM_VARS_NAVBAR_DEFAULT_BG_DESC" />
<field name="t3-navbar-default-link-active-bg" type="color" class="t3tm-color"
label="T3_TM_VARS_NAVBAR_DEFAULT_LINK_ACTIVE_BG_LABEL"
description="T3_TM_VARS_NAVBAR_DEFAULT_LINK_ACTIVE_BG_DESC" />
</fieldset>
Have added the following in the en_GB_.tpl_t3_bs3_blank.ini file
; Theme Magic
; NAVBAR
T3_TM_NAVBAR ="Navbar"
T3_TM_VARS_NAVBAR_DEFAULT_BG_LABEL ="Navbar Background Color"
T3_TM_VARS_NAVBAR_DEFAULT_BG_DESC ="Navbar Background Color"
T3_TM_VARS_NAVBAR_DEFAULT_LINK_ACTIVE_BG_LABEL ="Navbar Active Link Color"
T3_TM_VARS_NAVBAR_DEFAULT_LINK_ACTIVE_BG_DESC ="Navbar Active Link Color"
The attached image Is what I'm seeing in ThemeMagic.
Hope you can help.
Regards,
robjen