Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • pavit Moderator
    #964598

    Hi

    You can use a class suffix in this way

    .newback.t3-module {
    background:#yourcolor;
    border:1px solid #c00;
    }

    Then add to your module the suffix newback ( or whatever you want to call it ) adding an empty space at the beginning , as showed in image below i applied custom class to the weather module in sidebar-1 position.


    1. Screenshot-at-ago-31-17-03-39
    2. Screenshot-at-ago-31-17-04-12
    3. Screenshot-at-ago-31-17-04-40
    Spell Friend
    #964624

    Oh thats great! Thank you very much|! worked like charm.

    Is it a way to change the Red title of the module to another color ?

    pavit Moderator
    #964626

    Is it a way to change the Red title of the module to another color ?

    Add to your custom.css file this

    .module-title {
    background:#000!important;
    }

    If you want it black , or add your preferred color

    Spell Friend
    #964627

    In the printscreen i show what i want to achieve.

    I tried adding after a search in the forum this:

    .cat-blue .t3-sidebar .t3-module .module-title {
    background: #0077bb !important;
    }

    .cat-green .t3-sidebar .t3-module .module-title {
    background: #669900 !important;
    }

    .cat-orange .t3-sidebar .t3-module .module-title {
    background: #ff8800 !important;
    }

    .cat-cyan .t3-sidebar .t3-module .module-title {
    background: #0099cc !important;
    }
    (in custom CSS)

    but it didnt work.


    1. AAA
    Spell Friend
    #964630

    Also after adding the border the yahoo weather displays only one town or gets vanished. pretty weird. Anny suggestions?

    Spell Friend
    #964645

    @pavit thanx for the reply i wrote again without having seen your post. sorry about that. One question

    In the module class suffix this time i use module-title (with a blank space at the beginning) and add the newback with a , and a space?

    Spell Friend
    #964653

    @pavit also your code changes all the module titles to the specific color. I want to change it only in one module. Any suggestions?

    Spell Friend
    #964667

    SOS guys! After adding

    .module-title { background:#000!important; }

    And everything turned the same color i deleted it , saved the new custom.css but the color persists. Cleared cashe, tried 4 different brownsers (firefox Opera Edge Chrome) I can revert to the demo colors only if i delete the custom.css. If i try to upload a new one (custom.css) the change comes back and everything changes color. even if the custom.css is the one from the quickstart package…

    What can i do to fix it?

    (No custom.css now. i have deleted).

    Spell Friend
    #964693

    Problem solved flushing the whole site cashe.

    Now i need just to be able to change the color to a specific module with it keeping the border settings. Any suggestions?

    pavit Moderator
    #964905

    Now i need just to be able to change the color to a specific module with it keeping the border settings.

    Hi

    you can use the

    .newback.t3-module {
    background:#yourcolor;
    }

    using custom class to add to the module advanced settings as i showed above.

    Spell Friend
    #964917

    I want to change the color of the title of the module and keep the border too. Also to be able to CHANGE ONE MODULE per class. When i used your previous code it change every module title to my choosen color.

    Please look at the two prinscreens.

    1module.jpg is showing the problem. The .png file the first module using newback class. (and it works)

    Hope this post explains better what i want to accomplise.


    1. 1module
    2. 1module
    pavit Moderator
    #964970

    As i showed above how to create a CUSTOM CLASS you can do the same for module title

    as example add to your custom.css this codes

    .yellowtitle .module-title  {
      background:#edcd09!important;
    }
    .blutitle .module-title  {
      background:#0914ed!important;
    }

    Then add the class into advanced tab -> Module Class Suffix
    of each module

    Regards


    1. Screenshot-at-set-01-19-52-46
    Spell Friend
    #964984

    Worked like a charm and i finally understood what to do. Sorry i was seperating the two module classes with a comma and not with a space. Stupid me.

    Again thank you for your patience 🙂

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

This topic contains 13 replies, has 2 voices, and was last updated by  Spell 7 years, 7 months ago.

The topic ‘Border and custom background in sidebar -1 Module’ is closed to new replies.