About.html - Main image header does not stretch full screen

thequanger
Offline
Last seen: 10 months 4 weeks ago
Wed, 09/28/2016 - 23:24
#1
About.html - Main image header does not stretch full screen

The main image header does not fully 100% stretch to the left and right edge of the screen.

I have already sent Cindy a sample image of what is happening.

Thank you kindly in advance for your help.

linhpeter0508
linhpeter0508's picture
Offline
Last seen: 1 month 1 week ago
Thu, 09/29/2016 - 11:58

Hi Thequanger,

- You open script.js in js folder. 

- You find and remove: function parallaxInit()

- And save this code:

function parallaxInit() {
$('.awe-parallax').each(function() {
if (isMobile.any()) {
$(this).css('background-attachment', 'scroll');
} else {
$(this).parallax("50%", 0.1);
}
});
};

thequanger
Offline
Last seen: 10 months 4 weeks ago
Thu, 09/29/2016 - 23:37

Thank you.  Do I also need to remove this line in scripts.js as well:

 $(window).on('load', function() {
            aweBtn();
            masonry();
            setHeight();
            parallaxInit();             // DO I NEED TO REMOVE THIS TOO SINCE I REMOVED THE FUNCTION?

linhpeter0508
linhpeter0508's picture
Offline
Last seen: 1 month 1 week ago
Fri, 09/30/2016 - 00:46

Hi Thequanger,

Sorry I haven't clearly explained to you.

Source code in script.js your file:

function parallaxInit() {
if ($('.awe-parallax').length) {
if (isMobile.any()) {
} else {
$('.home-media .awe-parallax').parallax("50%", 0.1);
$('.our-story .awe-parallax').parallax("50%", 0.1);
$('.the-menu .awe-parallax').parallax("50%", 0.1);
$('.the-staff .awe-parallax').parallax("50%", 0.1);
$('.events .awe-parallax').parallax("50%", 0.1);
$('.testimonial .awe-parallax').parallax("50%", 0.1);
$('.sub-banner .awe-parallax').parallax("50%", 0.1);
}
}
}

You need remove it. And save this new code:

function parallaxInit() {
$('.awe-parallax').each(function() {
if (isMobile.any()) {
$(this).css('background-attachment', 'scroll');
} else {
$(this).parallax("50%", 0.1);
}
});
};

thequanger
Offline
Last seen: 10 months 4 weeks ago
Fri, 09/30/2016 - 05:49

Awesome, Thanks!   Resolved. 

Log in or register to post comments