• Resolved Brian1

    (@brian1)


    Hello,

    This appears to not be a problem that is not unique to Shashin. Using the wordpress theme Twenty Thirteen Shashin does two things that are not normal.

    1/ The images will not open up in a pop up with navigation tools. They simply open up in the same tab as a normal page with no navigation buttons.

    2/ Captions are not showing up either for the listing of folders or the individual photos.

    I have tested this with Twenty Twelve and Shashin behaves properly.

    I tried PWA+PHP Picasa Web Albums and it suffers from the same problem….working in Twenty Twelve but not in Twenty Thirteen.

    Any help is greatly appreciated.

    https://www.ads-software.com/plugins/shashin/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Brian1

    (@brian1)

    Here is a link to the Album;

    https://burtsgh.com/album/

    Plugin Author Mike Toppa

    (@toppa)

    Sorry for the late reply. It looks like you’ve switched to a different plugin on your site at this point, so I installed Twenty Thirteen on my site to test. The problem is that Twenty Thirteen includes an old version of the jQuery Masonry plugin, which has the imagesLoaded library included in it. This is causing a conflict with Shashin, which includes its own copy of imagesLoaded. Unfortunately it’s not a simple matter of setting Shashin to not use its own copy of imagesLoaded, as Shashin is designed around the current version of imagesLoaded (not the older one in Masonry).

    The current version of Masonry does not include the imagesLoaded library. Updating the version of Masonry in Twenty Thirteen to the current one may solve the problem.

    See here: https://masonry.desandro.com/appendix.html#upgrading-from-v2

    hi
    i didn’t understand how to update the version of Masonry in Twenty Thirteen, anybody can help?
    thanks

    Plugin Author Mike Toppa

    (@toppa)

    I just tested the following, and it lets Shashin work with Twenty Thirteen:

    1. Download v3.1 of Masonry: https://masonry.desandro.com/masonry.pkgd.min.js

    2. Copy it to your wp-content/themes/twentythirteen/js folder

    3. Edit the Twenty Thirteen functions.php file. Comment out line 166, like this:

    //wp_enqueue_script( 'jquery-masonry' );

    4. After the above line, add this:

    wp_enqueue_script( 'jquery-masonry3', get_template_directory_uri() . '/js/masonry.pkgd.min.js', array( 'jquery' ), '2013-07-18', true );

    Note this is a “quick and dirty” solution. If you want to follow proper WP practices, you would create a child theme and have it dequeue jquery-masonry, and then enqueue the new version there. That way you would not lose your changes if there is an upgrade to Twenty Thirteen.

    Or if you want to go really crazy and remove Masonry altogether without breaking the theme, someone wrote a tutorial.

    Please don’t edit theme files directly! You’ll lose your changes whenever the theme updates.

    Instead, just use wp_dequeue_script() in a child theme or [mu-]plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with Twenty Thirteen’ is closed to new replies.