Disable PrettyPhoto


  • Duncan
    Newbie 14 points
    September 18, 2016 at 1:55 pm

    I simply want to disable ‘prettyphoto’ from my website propellerseller.com

    on any listing page, clicking or tapping a photo opens ‘prettyphoto’ – how can I disable that?

    I’ve tried jQuery:

    <script>
    
    jQuery("a[data-gal^=\'prettyPhoto\']").unbind('click');
    jQuery("a[data-gal^=\'prettyPhoto\']").attr('rel', '');
    
    </script>

    but no luck so far… any ideas?


  • Josh
    Super Guru 13,875 points
    September 18, 2016 at 2:21 pm

    Hello Duncan,
    Please go to Appearance >Editor >content-single-listing-dealer.php are replace [IMAGES type=”images”] with [IMAGE]


  • Duncan
    Newbie 14 points
    September 18, 2016 at 2:35 pm

    thanks Josh,

    this doesn’t work at all unfortunately.

    the [IMAGE] code really destroys the page, the lower carrousel moves below description and as you can see the ‘prettyphoto’ still activates when the image is clicked.. see [IMAGE]

    by comparison the [IMAGES type…] photo shows how I want the page too look, I simply don’t want ‘prettyphoto’ to activate on clicking, hence thinking of a jQuery solution…?

    I’ve tried the search function, obviously, but no one else has seemed to want to disable it?

    many thanks

    Attachments:
    You must be logged in to view attached files.

  • Josh
    Super Guru 13,875 points
    September 18, 2016 at 2:50 pm

    Customization will be required.Please post here >>www.premiumpress.com/designwork/

Viewing 4 posts - 1 through 4 (of 4 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes