Gallery Arrows Not Working

Support Area Forums Moonrise Gallery Arrows Not Working

Viewing 6 posts - 1 through 6 (of 6 total)
URL to the page in question:
  • Author
    Posts
  • #12274
    Dan Gates
    Participant

    Hi Bill,

    I’m working off a temporary URL for my site right now, so I can’t link it. When I added a gallery to my page, first it wouldn’t let me look at the photos full screen. I found your fix for that. But the next/back arrow buttons don’t work to let people scroll through the gallery. How do I fix that?

    Thanks,
    Micaela

    #12275
    Bill Robbins
    Moderator

    Micaela,

    Thank you for your business first of all. Sorry about the trouble too. Any chance you could copy the source code of the page with the gallery and post it at http://gist.github.com and then post the link to it back here? That would help me sort it out for you.

    Thanks again,
    Bill

    #12276
    Dan Gates
    Participant
    #12277
    Bill Robbins
    Moderator

    Thanks for sending that over. I believe I’ve tracked down the trouble. Recently I added a smooth scrolling feature for moving from one part of a page to another and that seems to be the source of the trouble. Here’s how to remove it:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose custom-js.php and find this spot:
      
      // Smooth Scrolling
      	jQuery(document).ready(function(){
      		jQuery('a[href^="#"]').on('click',function (e) {
      		    e.preventDefault();
      	
      		    var target = this.hash,
      		    $target = jQuery(target);
      	
      		    jQuery('html, body').stop().animate({
      		        'scrollTop': $target.offset().top
      		    }, 900, 'swing', function () {
      		        window.location.hash = target;
      		    });
      		});
      	});
      
    3. Delete that and save your changes.

    That should fix the problem for you. I’ll remove or reconfigure that part for the next theme update too.

    If you have any questions or trouble, let me know.

    Thanks again,
    Bill

    #12458
    Dan Gates
    Participant

    Hi Bill,

    Sorry it took me so long to get back to you. Working great now! Thanks so much.

    #12462
    Bill Robbins
    Moderator

    That’s great to hear. If you need anything else, let me know.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Gallery Arrows Not Working’ is closed to new replies.