Hi all,
I have a decent amount of experience in Drupal, and can perform some basic CSS tweaking.
My client's website, www.thegolftouringcompany.com.au has a custom slideshow in the header, next to the logo, which is made using a third-party slideshow Javascript slideshow and a line of code in the HTML of the header calling the slideshow.
As you can see, the slideshow functions fine. However, it is too large to fit on a mobile device, and it is not yet set to hide automatically when presented with a mobile device.
I would prefer not to use Views, as it looks overly complicated to configure, and this is just a simple slideshow that will remain unedited for years. The Javascript I use functions perfectly.
I found some simple code that suggests I should make the div ID "mobile-only" and insert in to the CSS the following:
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
#mobile-only {
display: none
}
I inserted this code in to the CSS for the Drupal theme, and renamed the div's ID, however, while it did hide the slideshow on the mobile (and the site rendered fine), it ruined the website on the PC (everything was on top of each other, or in the wrong place, and the slideshow was still present).