Support › Forums › White – HTML Template › homepage problems
- This topic has 3 replies, 2 voices, and was last updated 8 years, 2 months ago by
CreaboxThemes.
-
AuthorPosts
-
September 5, 2015 at 9:14 pm #4800
Sari
ParticipantHello!
I have been working with this template, and I seem to be having problems with my homepage. I want to get the photos in the background to change, and the text on top to be fixed. However, the opposite is happening. As the template is set up to have three rotating text containers on the homepage, even though I have deleted the other two in hopes of having one container fixed, it still rotates out as if the other two were there. As for the sliding photos, they rotate when you refresh or reload the page, but not on a timer. Please help!
My URL is saricross.com/v4
September 6, 2015 at 8:28 pm #4801CreaboxThemes
KeymasterHi,
if you want to autoplay the slider, you have to change the variable start_slide in the file image_slider.js (folder js). Change the value to 1.
And if you want to remove the rotation in the messages, you have to remove the next code in the file custom.js (folder js):
/* ============================================== /* MESSAGE ROTATION IN THE HOMEPAGE =============================================== */ var intervalTime = 2000; //transition time var messageArray = $(".messages").children(); var messageMax = messageArray.length - 1; messageArray.each( function( index ) { $(this).fadeOut(); } ); $(messageArray[0]).fadeIn(); function text_rotate(){ setTimeout ( function() { messageRotate(1); }, intervalTime); } function messageRotate( index ) { var prev = ( (index == 0) ? (messageMax) : (index - 1) ); var next = ( (index == messageMax) ? 0 : (index + 1 ) ); setTimeout ( function () { $(messageArray[prev]).fadeOut(); setTimeout ( function () { $(messageArray[index]).fadeIn(); setTimeout ( function () { messageRotate(next); },intervalTime ); },(intervalTime/2) ); },intervalTime ); }
Regards
September 6, 2015 at 10:23 pm #4802Sari
ParticipantHello;
I made those changes and uploaded them for you to see. It didn’t seem to work, and in fact now nothing is visible except the non-rotating background image.
S
September 7, 2015 at 7:45 am #4803CreaboxThemes
KeymasterYes, you are right. There is a jQuery conflict. I have forgotten to tell you that you need remove the line 31 in the file custom.js where he code is:
text_rotate();
Regards
-
AuthorPosts
- You must be logged in to reply to this topic.