Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • Saguaros Moderator
    #1054124

    Hi,

    It looks like you changed the color already, let me know if you still need help here.

    Regards

    agiacopa78 Friend
    #1054302

    Hi, if I really need to change the first two blocks. 1 and 2. although I find them in the code but I do not know which of all the files is the one that corresponds.
    csstemplate.css
    lessmodules.less
    rtltemplate.css

    .module-bg.bg-gray-dark {
    background: #23263d;
    }
    .module-bg.bg-blue {
    background: #ffcc00;
    }
    .module-bg.bg-yellow {
    background: #ffcc00;
    }
    .module-bg.bg-orange {
    background: #ff8800;
    }
    .module-bg.bg-cyan {
    background: #01b888;
    }
    .module-bg.bg-red {
    background: #cc0000;
    }
    .module-bg.bg-pink {
    background: #f254b1;

    Saguaros Moderator
    #1054377

    If you want to add custom style via LESS files, you can try this way:

    • Create a new folder called local in this directory: [root]/templates/ja_healthcare (your default template)/ (if this folder already exists, it’s good)
    • Copy 2 less files:

    [root]/templates/ja_healthcare/less/variables.less
    [root]/templates/ja_healthcare/less/modules.less

    • Paste into: [root]/templates/ja_healthcare/local/less/ (create this less folder if it doesn’t persist)
    • Open the variables.less file, at approx line 51, you see the declaration for accent colors:

    Accent colors

    @black: #000;
    @white: #fff;
    @blue: #0097d7;
    @green: #1eb848;
    @cyan: #01b888;
    @red: #c00;
    @yellow: #fc0;
    @orange: #f80;
    @pink: #f254b1;
    @purple: #915df0;

    @newcolor: #2e7d32;

    you can define new color as you wish, for example newcolor as above

    • Next, open the modules.less file, at approx line 107, you see this:

      &.bg-blue {
      background: @blue;
      }
      
      &.bg-yellow {
      background: @yellow;
      }
      
      &.bg-newcolor {
      background: @newcolor;
      }

    this define the background for module class suffix for these modules on frontend.

    Then in backend settings of module, you can add class bg-newcolor in module class suffix field. On the frontend it will load the new background color you declared.

    Hope this makes senses.

    • This reply was modified 7 years, 3 months ago by  Saguaros.
    edna bonfim Friend
    #1068663

    HI,

    I have the same problem, but I don’t know how edit the .less
    Is another way I can change the background color?
    Thank you in advance

    Saguaros Moderator
    #1068725

    I suggested you the detailed steps to change color as above, in which steps you have difficulty with.

    edna bonfim Friend
    #1068874

    OK.
    I accessed:
    [root]/templates/ja_healthcare/local/less/themes/spa
    into the folder spa already exist variable.less (see img2 and img1)

    [root]/templates/ja_healthcare/less/themes/spa
    here there are:
    template.less
    variables-custom.less (empty)
    variables.less (see img3)

    module.less does not exist.
    What would be the next step? Since what is inside the file is different than you place above…


    1. img-2
    2. img-1
    3. img3
    Saguaros Moderator
    #1069072

    You can share the URL, Admin + FTP account via private reply and tell me the colors you want to use, I will check for you.

    Wladyslaw Friend
    #1069121

    OK

    • This reply was modified 7 years, 1 month ago by  Wladyslaw.
    • This reply was modified 7 years, 1 month ago by  Wladyslaw.
    edna bonfim Friend
    #1071394
    This reply has been marked as private.
    Saguaros Moderator
    #1071569

    Could you backup your site first? as I will change in LESS file and compile less to css after that.

    edna bonfim Friend
    #1071977

    Ok, backup is already done!

    Saguaros Moderator
    #1072098

    I checked and saw that you’d not updated anything as I suggested above. Why?

    I updated for you and it’s showing fine now.

    edna bonfim Friend
    #1072356

    Hi, I’m sorry, but how I told before I had doubts about your instructions!
    Thank you very much for the changes.

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

This topic contains 13 replies, has 4 voices, and was last updated by  edna bonfim 7 years ago.

The topic ‘Change picture color position 1, 2, 3’ is closed to new replies.