Hi everyone, I am having a problem with my javascript. What happen is when I scroll down my site it leaves a wide space between the menu and the slideshow.
Please help me fix my problem.
Hi everyone, I am having a problem with my javascript. What happen is when I scroll down my site it leaves a wide space between the menu and the slideshow.
Please help me fix my problem.
Hi,
I would imagine that it is being caused by this function:
// function to fix header on page scroll / load
var fixedHeader = function(){
var hdrHt = jQuery('header.header').height();
var scrPos = jQuery(window).scrollTop();
var aBarHt = jQuery('#wpadminbar').height();
if( scrPos > (hdrHt+35)/3 ){
jQuery('header.header').addClass('fixed_header');
jQuery('header.header').next().css('margin-top',(hdrHt+35)+'px');
}else{
jQuery('header.header').removeClass('fixed_header');
jQuery('header.header').next().css('margin-top','0');
}
}
In this file: http://www.skinwhitening101-intl.com/wp-content/themes/skt-biz/js/custom.js?ver=4.1
What happens when you try removing it?
In that search bar just search for the theme. Could you do that?
Welp, for now (until this is fixed) you can just throw this onto .content-area
.content-area{margin-top:0!important;}
This is a band-aid fix: you should still be trying to get this file resolved
That works. Well I don’t know why my file is like that. It seems that all of my themes and plugins that I have installed are not there. It’s weird.
Yeah, something is not correct.
Obviously the file does exist on your server, as you can click on the link in my first post in this thread.
How are you accessing your files on the server? Via FTP?
Nope, just a simple file manager.
You are looking at the files on the server though, right?
yes, You are right. hmmm, maybe something wrong that I am doing?
Which FTP program are you using?
Is this what you are talking about? well i never use that because I forgot my password and could not retrieve it. Something wrong?
So how do you upload files to your server?
Well I use the file manager before. But when I start using wordpress I just use the live dashboard since I can’t install xampp and wamp in my desktop for some reason.
Well, the file is there if you can see it or not.
If I was you, I would obtain your FTP credentials and use a program such as Filezilla to access the files on your server. From there,it should be easy to find and edit the offending file.
Sure men. I really appreciate your help and I am learning too. Thank you so much for your advice.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.