Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #190177

    Bryan C
    Participant

    Terribly sorry about that. Don’t know why it didn’t go through in making the new user, but the admin login should work now. Also the child theme that I’m using is the Icon one. Let me know if there are other issues. Thanks!

    #190862

    Rad
    Moderator

    Hi Bryan,

    Please check, I changed the coding to just this.

    add_action('wp_footer', 'enqueue_lightbox_script');
    
    function enqueue_lightbox_script() {
    
    if ( x_is_portfolio() ) :
    ?>
    
        <script type="text/javascript" src="<?php echo home_url(); ?>/wp-content/plugins/x-shortcodes/js/dist/site/vendor-ilightbox.min.js"></script>
        <script type="text/javascript">
          jQuery(function( $ ){ 
    
            $( '.entry-featured a img' ).each( function(){
    
                    $( this ).parent().attr('href', $(this).attr('src') ).iLightBox({skin: "light",linkId: "gallery-image",overlay: {opacity: 0.875,blur: true},styles: {prevScale: 0.75,prevOpacity: 0.75,nextScale: 0.75,nextOpacity: 0.75},path: "horizontal",controls: {thumbnail: false}});
    
            } )
    
          });
        </script>
    
    <?php
    endif;
    }

    Cheers!

    #192921

    Bryan C
    Participant

    It did exactly what it’s supposed to for the blog, but just today I discovered that you’ve broken the functionality of the portfolio. When you open an image in a lightbox you cannot go left or right to go to other images, and furthermore it breaks and you cannot exit out of the lightbox.

    This needs to be addressed immediately or I’ll have to revert to the previous code because it’s more important that the portfolio doesn’t completely break than the blog being perfect. This could lose me potential clients. I was about to send out emails to prospective clients telling them to check out our website. I’m glad I discovered this first!

    Please see what you can do. Thank you for your attention.

    -Bryan

    #192923

    Bryan C
    Participant

    To specify, look at any of the portfolio galleries like http://cooperandohara.com/portfolio/featured/ or http://cooperandohara.com/stories-editorial-photography/ etc.

    You can close the lightbox if you don’t do anything like use the right or left keys to try and navigate first. But still I think most people will try that and get the page frozen.

    #192969

    Bryan C
    Participant

    For the time being I reverted the functions.php to a coding that made the portfolio work. Just because I know your support team is busy and it might take awhile for them to get around to it. Hope it doesn’t impact your work much when you get around to it. Thanks!

    -Bryan

    #193466

    Christopher
    Moderator

    Hi there,

    You have cache plugin activated.
    Please disable it and clear browser cache and test again.

    Hope that helps.