The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Including colour into mobile template

    Leah Sweeney
    Leah Sweeney
    New Member


    Posts : 21
    Reputation : 1
    Language : English

    Solved Including colour into mobile template

    Post by Leah Sweeney 8/4/2015, 16:22

    Hi,

    Can anyone help as to how to incorporate a change of color into my mobile template I have managed to change a few things but I cannot find out where to add color to the main body and category titles boxes.

    Thanks and hope that makes sense, basically I want to change my background colors.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Including colour into mobile template

    Post by SLGray 8/4/2015, 19:22




    Including colour into mobile template Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Leah Sweeney
    Leah Sweeney
    New Member


    Posts : 21
    Reputation : 1
    Language : English

    Solved Re: Including colour into mobile template

    Post by Leah Sweeney 8/4/2015, 20:16

    Hi,
    Thank you I have seen the above link but I'm unclear about which template I put this into, I've tried a few and nothing happens. I was expecting to find the colours that are already present somewhere to reply them but I'm stuck. Thought I was doing well.
    Thank you
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Including colour into mobile template

    Post by Ange Tuteur 8/4/2015, 21:51

    Hi @Leah Sweeney,

    You can change the color of the headers by adding the following CSS rule to your stylesheet.
    Display > Colors > CSS stylesheet
    Code:
    .mobile_set {
      background:#C9C;
    }

    Also, could you post your overall_header template for the mobile version here ? I'm looking at the HTML and something isn't adding up correctly -- like there's a tag that wasn't closed. If we can figure that out I can give you something for the main background too.
    Leah Sweeney
    Leah Sweeney
    New Member


    Posts : 21
    Reputation : 1
    Language : English

    Solved Re: Including colour into mobile template

    Post by Leah Sweeney 8/5/2015, 07:31

    Thank you for your help the colors now make sense. I'm not sure what you want regarding the header?

    Also I've had to disable the mobile site as it keeps redirecting to the App Store, would this stop if I paid to stop ads? I don't want to pay and it continues.

    Thank you
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Including colour into mobile template

    Post by Ange Tuteur 8/5/2015, 09:30

    I imagine if the adverts are the cause of the redirection, then it should stop if the adverts were removed. I noticed an error that appeared to be coming from your header which made styling the background a tad more difficult, unless you just want to go with a CSS body rule ?

    Code:
    body {
      background:#C9C;
    }
    ( that would affect both the mobile and normal versions )
    Leah Sweeney
    Leah Sweeney
    New Member


    Posts : 21
    Reputation : 1
    Language : English

    Solved Re: Including colour into mobile template

    Post by Leah Sweeney 8/5/2015, 18:52

    I have managed to change the title colors thank you.
    Can I change the category icons on the mobile site and the category background color.

    Sorry for all the questions but your help is great.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Including colour into mobile template

    Post by Ange Tuteur 8/5/2015, 19:41

    This is the CSS for the forum icons which I wrote for my mobile theme :
    Code:
    /* LINK ARROW ( FAR RIGHT ) */
    .mobile_item_link_content {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/chevro10.png');
      background-position:99% 50%;
    }

    /* CATEGORY NEW AND NO NEW */
    .cat_no_new, .cat_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/folder10.png');
    }

    /* FORUM, FOLDER, HOT  */
    .forum_no_new, .forum_new, .folder_new, .folder_no_new, .folder_hot, .folder_hot_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
    }

    /* LOCKED */
    .cat_locked, .forum_locked, .folder_locked, .folder_locked_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/locked10.png');
    }

    /* GLOBAL */
    .folder_global, .folder_global_new, .folder_announce, .folder_announce_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/announ10.png');
    }

    /* STICKY */
    .folder_sticky, .folder_sticky_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/pinned10.png');
    }

    It combines both the new and no new icons, so you might want one that's a bit more extended like the one below which includes a rule for each individual icon.
    Code:
    /* ARROW ( FAR RIGHT ) */
    .mobile_item_link_content {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/chevro10.png');
      background-position:99% 50%;
    }


    /* CATEGORY */
    .cat_no_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/folder10.png');
    }
     
    .cat_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/folder10.png');
    }


    /* FORUM */
    .forum_no_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
    }

    .forum_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
    }


    /* FOLDER */
    .folder_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
    }

    .folder_no_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
    }


    /* HOT */
    .folder_hot {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
    }

    .folder_hot_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/no-new10.png');
    }

    /* LOCKED */
    .cat_locked {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/locked10.png');
    }

    .forum_locked {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/locked10.png');
    }

    .folder_locked {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/locked10.png');
    }

    .folder_locked_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/locked10.png');
    }

    /* GLOBAL */
    .folder_global {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/announ10.png');
    }

    .folder_global_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/announ10.png');
    }

    .folder_announce {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/announ10.png');
    }

    .folder_announce_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/announ10.png');
    }

    /* STICKY */
    .folder_sticky {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/pinned10.png');
    }

    .folder_sticky_new {
      background-image:url('http://i18.servimg.com/u/f18/18/21/41/30/pinned10.png');
    }

    All you need to do is replace the image URLs with the ones you want to display. It should be easy to tell which one does want by looking at the comments or the class name. New post icons are denoted by "new" and regular ones either lack "new" or contain "no_new" in the class.


    Lastly, to change the background color of the category rows, you can use these two rules. First one for default, and second one for hover.
    Code:
    .mobile_item {
      background:#FDF;
    }

    .mobile_item:hover {
      background:#FEF;
    }

    Don't worry about it, that's why I'm here. Smile
    Leah Sweeney
    Leah Sweeney
    New Member


    Posts : 21
    Reputation : 1
    Language : English

    Solved Re: Including colour into mobile template

    Post by Leah Sweeney 8/5/2015, 21:30

    Thank you, you have been very helpful and patient whilst I asked lots of questions.

    Thanks again, I'm sure I will be back with more questions in the future when I get stuck again scratch
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19327
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Including colour into mobile template

    Post by Ape 8/5/2015, 22:47

    Topic solved and archived



    Including colour into mobile template Left1212Including colour into mobile template Center11Including colour into mobile template Right112
    Including colour into mobile template Ape_b110
    Including colour into mobile template Ape1010

      Current date/time is 9/23/2024, 14:27