Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Creaktor Branding Agency Friend
    #902954

    Hi,

    I am changing the template/acm/footer/style2.php and .xml file into my own stylename.

    When I open the XML and change…

    <option value="light-color">LIGHT_COLOR

    into…

    <option value="custom-color">CUSTOM_COLOR

    The backend shows "CUSTOM_COLOR" into the dropdown field instead of lower case "custom color".

    Why is it that LIGHT_COLOR has a lower case and a custom own name does not? Where is this variable or so being corresponding with? Language file? Less file?

    www.creaktor.com

    pavit Moderator
    #902982

    Hi

    You can find translations in this file /language/en-GB/en-GB.tpl_uber.ini

    ; Footer
    FOOTER_BACKGROUND_LABEL             ="Footer Theme"
    FOOTER_BACKGROUND_DESC              ="Select theme color for Footer of the template style"
    DARK_COLOR                          ="Dark Color"
    LIGHT_COLOR                         ="Light Color"
    HIGHLIGHT_COLOR                     ="Highlight Color"
    ENABLE_STICKY_LABEL                 ="Enable Sticky"
    ENABLE_STICKY_DESC                  ="Select Yes to make the content block sticky"
    BLACK_COLOR                         ="Black Color"

    Best regards

    Creaktor Branding Agency Friend
    #903012

    Ok thanks!. O, by the way. If I would want to use template/acm/footer/less/style2.less and copy/paste/rename it to custom.less, (asuming that the xml and php files are called custom as well), does that custom.less file automatically been picked up/hooked to the php and xml? If not where and how are those 3 files linked to each other?

    I was thinking about to maybe just put in an @import link from this custom.less file pointing to a local less file in templates/local/less/footer.less for my local less editing to keep an overview of all styling in the local less folder.

    www.creaktor.com

    pavit Moderator
    #903015

    I was thinking about to maybe just put in an @import link from this custom.less file pointing to a local less file in templates/local/less/footer.less

    That’s a good solution and it should work fine

    Best regards

    Creaktor Branding Agency Friend
    #904956

    Hi pvit, I cannot get it to work.

    my actions:

    goto template/acm/header/less:
    copy/rename style-7.less to style-7-custom.less

    goto template/acm/header/tmpl:
    copy/rename style-7.php to style-7-custom.php
    copy/rename style-7.xml to style-7-custom.xml

    Change content of style-7-custom.less

    .uber-header {
        &.header-7{

    to

    .uber-header {
        &.header-7-custom {

    Change content of style-7-custom.php

    <header id ="uber-header-<?php echo $module->id; ?>" class="wrap uber-header header-7 light-color">

    to

    <header id ="uber-header-<?php echo $module->id; ?>" class="wrap uber-header header-7-custom light-color">

    Change content of style-7-custom.xml

     <title>Header Style 7</title>

    to

     <title>Header Style 7 Custom</title>

    and

     {":type":"uber:header","header":{"jatools-layout-header":"style-7","header[header-background]":["dark-color"],

    to

     {":type":"uber:header","header":{"jatools-layout-header":"style-7-custom","header[header-background]":["dark-color"],

    Change module name of ACM Module

    style-7

    to

    style-7-custom

    Without changing any less data yet, the refresh result before and after is not the same. This means that the style-7-custom.less is not recognized.

    Questions:

    1. Why is this the less file not reflecting the exact same way the rest of the less files work?
    2. Is there maybe another file where al those less files also need to be put in to fix this? And if this is the case, is this safe to use when updating the website?

    www.creaktor.com

    pavit Moderator
    #904985

    Hi

    May i know what exactly are you trying to achieve with this ? and also why ?

    You can protect your customizations simply using the /local folder also for Ja ACM Modules

    Take a look HERE

    Maybe i misunderstood the reason ?

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

This topic contains 5 replies, has 2 voices, and was last updated by  pavit 8 years, 7 months ago.

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