brooks
asked 9 years ago

Hi,

After I changed the sidebar width to 300px, the homepage news slider widget overlaps with the one below it. This is only when viewing on mobile.

Here is what it looks like on my tablet:  http://tinyurl.com/nvujxaf

 

2 Answers
brooks
answered 9 years ago

I think I found the code that is causing this problem.

In the footer, there is:

 

<script>
var height = jQuery(‘.news-slider’).height();
jQuery(‘.news-slider .carousel’).css(‘height’, height);
</script>

 

When I remove this, the problem goes away. Can this be fixed?

brooks
replied 9 years ago

Do I need this code? It doesn’t seem like anything is affected when I remove it.

DominicStaff
answered 9 years ago

Hello Brooks!

Script code that you sent me, it is used to calculate the height of image in the News Carousel. if you use the height image which is larger than 400px, the code will not affect.

Regards,
Dominic

Powered by DW Question & Answer Pro