Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • florian78 Friend
    #197028

    Hi,

    I know it’s a kind of newbie question. But I’m a little bit confused in the overwhelming power of overrides.

    Where is the best place to put another logo.png file and to define another logo size

    I know I have to modify the template.css file. e.g.
    h1.logo { width: 266px; height: 100px; }

    h1.logo a {
    background: url(../images/logo.png) no-repeat left;
    display: block;
    width: 266px;
    height: 100px;

    But my question is: where do I have to put the logo.png file and the modified template.css file so if another update of JA Social Template is coming I won’t lose the modifications?

    kind regards
    Florian

    TomC Moderator
    #532162

    Greetings Florian . . . .

    Seek and Ye Shall Find –>

    Pankaj Sharma Moderator
    #532189

    <em>@florian78 423337 wrote:</em><blockquote>Hi,

    I know it’s a kind of newbie question. But I’m a little bit confused in the overwhelming power of overrides.

    Where is the best place to put another logo.png file and to define another logo size

    I know I have to modify the template.css file. e.g.
    h1.logo { width: 266px; height: 100px; }

    h1.logo a {
    background: url(../images/logo.png) no-repeat left;
    display: block;
    width: 266px;
    height: 100px;

    But my question is: where do I have to put the logo.png file and the modified template.css file so if another update of JA Social Template is coming I won’t lose the modifications?

    kind regards
    Florian</blockquote>

    Hi Florian
    if you want to override the css, the best option to put your css in the custom. css file. It will override on all other css files .
    Hope it helps

    florian78 Friend
    #532193

    <em>@pankajsharma 423382 wrote:</em><blockquote>Hi Florian
    if you want to override the css, the best option to put your css in the custom. css file. It will override on all other css files .
    Hope it helps</blockquote>

    Hi, and where should I put the custom.css file?
    Would be the best place /templates/ja_social/css/custom.css
    Or is it another directory?

    Regards,
    Florian

    TomC Moderator
    #532194

    <em>@florian78 423388 wrote:</em><blockquote>Hi, and where should I put the custom.css file?
    Would be the best place /templates/ja_social/css/custom.css
    Or is it another directory?

    Regards,
    Florian</blockquote>

    /templates/ja_social/css/custom.css … is exactly the path it should be. 🙂

    florian78 Friend
    #532202

    ok, I put the modification in
    /templates/ja_social/css/template.css and also did the override in
    /templates/ja_social/css/custom.css <– there I listed only the following modifications:

    /* Logo Image ---*/
    h1.logo {
    height: 130px; /* modified flo */
    width: 600px; /* modified flo */
    }

    h1.logo a {
    background: url(../images/logo.png) no-repeat left;
    display: block;
    height: 130px; /* modified flo */
    width: 600px; /* modified flo */
    }

    #ja-header .main {
    padding: 1px 0; /* modified flo - original von 15px auf 1px setzen */
    }

    So the modifications are in both files…won’t hurt I guess.

    Display result:
    when I’m on the home screen I get the new logosiziing and the different padding

    when I’m on another menu e.g. menu Fotos I get the old logosizing and the old padding.

    Where is the mistake? Is it a caching issue?

    regards
    Florian


    1. Logo-Size
    2. Logo-Size-old
    alexsmirnov Friend
    #532215

    Hi Fabian,

    When you change CSS styles in /templates/ja_social/css/template.css, then you use customisation, which has nothing to do with “override” technique. In such case next time you update you JA Social template, the old template.css file (with your changes in it) will be replaced by new template.css file, so all your hard work will be lost.

    When you put a new style rule, however small it might be, into /templates/ja_social/css/custom.css file, then you create “override”. In this case next time you update your JA Social template, your whole custom.css file will remain intact, hence your own little CSS changes will continue to work for you.

    Hope it helps.

    Regards,

    Alex

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

This topic contains 7 replies, has 4 voices, and was last updated by  alexsmirnov 10 years, 7 months ago.

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