test
Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • EG Friend
    #868207

    Hello,

    I would like to change the size of the picture in background on homepage. Like on the demo if we resize the window of the web navigator, we only see a part of this picture. I want we see all the picture irrespective of the size of the window. How can I do that ?

    Thanks a lot for your help,

    EG

    Ninja Lead Moderator
    #868564

    Hi,

    You can make the responsive the background home with my tweak below

    Create templates/ja_social_ii/css/custom.css file and add new the CSS style

    @media  (max-width: 767px) {
        body.features-page .features-bg {
            background-size: 100% 100%;
        }
    }
    
    @media  (min-width: 768px) and (max-width: 979px) {
        body.features-page .features-bg {
            background-size: 100% 100%;
        }
    }

    Regards

    EG Friend
    #868706

    I’m sorry, I see Ninja Lead has answered to my post but I can’t see his answer ? Is it a bug of the forum ?

    EG Friend
    #868736
    This reply has been marked as private.
    Ninja Lead Moderator
    #869391

    Try this solution :

    • Open templates/ja_social_ii/css/features.css file

    find and change

    body.features-page .features-bg {
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      height: 100%;
      width: 100%;
      z-index: -1;
    }

    to

    body.features-page .features-bg {
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      height: 100%;
      width: 100%;
      z-index: -1;
      background-size: 100% !important;
    }
    EG Friend
    #870067

    Thanks, it works !

    However how can I do to remove the grey zone ? I want keep the same size for the picture but without the grey space.

    Thanks for your help,

    EG

    Ninja Lead Moderator
    #870436

    Try to open templates/ja_social_ii/css/features.css file again

    find and change

    body.features-page .features-bg .mask {
      background: rgba(0, 0, 0, 0.4);
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      z-index: 2;
    }

    to

    body.features-page .features-bg .mask {
      top: 0;
      right: 0;
      left: 0;
      bottom: 0;
      z-index: 2;
    }
    EG Friend
    #870858
    This reply has been marked as private.
    Ninja Lead Moderator
    #871309

    Hope the CSS style below will help you to fix this bug

    Create templates/ja_social_ii/css/custom.css file and add new the CSS style

    @media  (min-width: 768px) and (max-width: 1024px) {
        #t3-content {
            padding-top: 127.067px !important;
        }
    
        #t3-features-intro {
            margin-top: 450px !important;
        }
    }
    EG Friend
    #871727
    This reply has been marked as private.
    EG Friend
    #872116
    This reply has been marked as private.
    Ninja Lead Moderator
    #873352

    You can apply the same my solution above with another dimension on your site

    @media  (min-width: 1200px)
    
    @media  (max-width: 767px)

    and don’t forget to change the value padding-top and margin-top

    EG Friend
    #873755

    Ok, thanks you ! However how do you chose for padding-top value ?

    And why your fix works only for size screen between 940 and 1024 where as we write in css : (min-width: 768px) and (max-width: 1024px) ?

    Ninja Lead Moderator
    #874168

    I made some customization on CSS with media Query for Small , tablet and wide layouts as below. You can apply it on your site

    @media  (min-width: 1200px) {
        #t3-content {
            padding-top: 227px !important;
    
        }
        #t3-features-intro {
            margin-top: 760px !important;
        }
    }
    
    @media  (min-width: 768px) and (max-width: 1024px) {
        #t3-content {
            padding-top: 127.067px !important;
        }
        #t3-features-intro {
            margin-top: 450px !important;
        }
    }
    
    @media  (max-width: 767px) { 
        #t3-features-intro {
            margin-top: 533px !important;
        }       
    }
    EG Friend
    #874603

    Unfortunately, still doesn’t work very well.

    Same problem as in my previous post :

    • for example, it doesn’t work between 768 px and 990 approximatively and I don’t know why

    Moreover :

    • beyond 1200 px, I have a grey band under the image
    • between 1024 and 1200 px, it doesn’t work but on this point I see why it doesn’t function.
Viewing 15 posts - 1 through 15 (of 25 total)

This topic contains 24 replies, has 2 voices, and was last updated by  Ninja Lead 8 years, 5 months ago.

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