Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • crystalprint Friend
    #194869

    Hi Guys,

    I Have a question , is to possible to make the header_bg.gif Responsive ?
    I made the header_bg.gif on a 23 inch monitor, but when i try to look at it on a smaller screen i lose allot of my image.
    So is it possible to make it responsive ??

    Kind regards

    synapsis Friend
    #523069

    I would also be interested in a solution to this.

    Ninja Lead Moderator
    #523105

    Right now its difficult to suggest the solution to you. It would be awesome if you can possibly include URL of your site. I am happy to help you out.

    crystalprint Friend
    #523150

    Thank you very much Ninja Lead, i have yust send you a PM

    Ninja Lead Moderator
    #523336

    <em>@crystalprint 411872 wrote:</em><blockquote>Thank you very much Ninja Lead, i have yust send you a PM</blockquote>

    You can follow workaround below:

    Open the templates/ja_onepage/css/custom.css file and add this css rule:

    @media (max-width: 767px) {
    .hero-unit {
    width: 100%;
    background-size: cover;
    }
    }

    Or:
    You can add small image with mobile layout as follows:

    Open the templates/ja_onepage/css/custom.css file and insert background-image

    @media (max-width: 767px) {
    .hero-unit {
    width: 100%;
    background-size: cover;
    background-image: url(../../../templates/ja_onepage/images/themes/metro/header_bg_mobile.gif);
    }
    }

    The mobile image path should be: templates/ja_onepage/images/themes/metro/header_bg_mobile.gif

    Hope it helps.

    crystalprint Friend
    #523626

    Hi Ninja Lead,

    No it doesn’t Work ..

    The image is still the same width and lose quart of the image if i view it on a smaller screen.
    Do you maybe have another solution?

    kind regards.

    Ninja Lead Moderator
    #523971

    I see the image templates/ja_onepage/images/themes/metro/header_bg_mobile.gif has very large size, why don’t use small one for better result on mobile layout.

    crystalprint Friend
    #524116

    Hi Ninja Lead,

    I made the image smaller but that doesnt make it better.
    It only makes it worse , i see allot of pixels on my mobile or tablet.

    kind regards

    Ninja Lead Moderator
    #524233

    Please try additional steps below:

    Open the templates/ja_onepage/css/custom.css file

    Change


    @media (max-width: 767px) {
    .hero-unit {
    width: 100%;
    background-size: cover;
    background-image: url(../../../templates/ja_onepage/images/themes/metro/header_bg_mobile.gif);
    }
    }

    To


    @media (max-width: 767px) {
    .hero-unit {
    background-image: url(../../../templates/ja_onepage/images/themes/metro/header_bg_mobile.gif);
    }
    }

    With image path: templates/ja_onepage/images/themes/metro/header_bg_mobile.gif and size: 289px x 395px

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

This topic contains 9 replies, has 3 voices, and was last updated by  Ninja Lead 10 years, 3 months ago.

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