• creremAnna
    July 24, 2014 at 7:30 am #50559

    To disable prettyphoto plugin you need to do the following

    1. in libs/css_js_include.php you need to remove this line (around line 93)

    wp_enqueue_script(‘jquery.prettyphoto’, get_template_directory_uri().’/js/jquery.prettyphoto.js’,array(‘jquery’), ‘1.0’, true);

    2 in js/control.js you need to remove these lines of code (starting with line 694)

    $(“a[rel^=’prettyPhoto’]”).prettyPhoto();
    var mediaQuery = ‘has_pretty_photo’;
    if (Modernizr.mq(‘only screen and (max-width: 600px)’) || Modernizr.mq(‘only screen and (max-height: 520px)’)) {
    mediaQuery = ‘no_pretty_photo’;
    //$(“a[data-pretty^=’prettyPhoto’]”).unbind(‘click’);
    $(“a[rel^=’prettyPhoto’]”).unbind(‘click’);
    }

    // pretty photo on / off
    mediaQuery = ‘has_pretty_photo’;

    if ((Modernizr.mq(‘only screen and (max-width: 600px)’) || Modernizr.mq(‘only screen and (max-height: 520px)’)) && mediaQuery === ‘has_pretty_photo’) {
    // jQuery(“a[data-pretty=’prettyPhoto’]”).unbind(‘click’);
    jQuery(“a[rel^=’prettyPhoto’]”).unbind(‘click’);
    mediaQuery = ‘no_pretty_photo’;
    } else if (!Modernizr.mq(‘only screen and (max-width: 600px)’) && !Modernizr.mq(‘only screen and (max-height: 520px)’) && mediaQuery === ‘no_pretty_photo’) {
    //$(“a[data-pretty=’prettyPhoto’]”).prettyPhoto();
    $(“a[rel^=’prettyPhoto’]”).prettyPhoto();
    mediaQuery = ‘has_pretty_photo’;
    }

    Now photos open in a new page when you click on them (this is wordpress images behavior). To remove the link would require to remove urls in html

    The templates for slider in wpresidence are

    templates/listingslider-vertical.php

    and

    templates/listingslider.php

    • This topic was modified 2 years, 10 months ago by  Anna.
    • This topic was modified 1 year, 11 months ago by  Anna.
    QantumThemes
    July 24, 2014 at 1:19 pm #50676

    Excellent answer, excellent customer support, thanks!

    sananhung_bds
    August 14, 2015 at 8:07 am #119872

    yes. i like pretty photo. it is easy use

You must be logged in to reply to this topic.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.