• I’d like to show the slider/carousel thing on desktop as it looks and works well there, but not on tablet/mobile as it doesn’t display well there (the arrows are very high up and it also seems to slow the page load time down).

    Is this possible?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello there.

    You would need to edit the header.php file to accomplish this.

    Changing line 67 from
    <?php if ( is_home() ) {
    to
    <?php if ( is_home() && ! wp_is_mobile() ) {
    should do the trick.

    However making this change would require having a child theme. For info on how to create and operate a child theme please have a look at this small tutorial https://www.cssigniter.com/beginners-guide-child-themes/

    Once you have the child theme up and running, copy over the header.php file and make the suggested change.

    Do not make this change on the original header.php file.

    Thread Starter packthesuitcases

    (@packthesuitcases)

    Ah, I thought that may be the case. I’m wary of doing a child theme so will just leave it for now. Thanks anyway!

    Glad to help.

    If you decide to proceed and need assistance, let us know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable slider on mobile’ is closed to new replies.