• I’m trying to edit the opacity of the lightbox background from 0.8 to 0.4. I came across this forum post, which goes into some detail about how to make edits to the jquery.prettyPhoto.js file in such a way that when WC is updated the customization in the opacity won’t be overwritten.

    I followed all of the recommended steps at the end of the mentioned post, but at the end of the process got the following error message:

    Parse error: syntax error, unexpected T_DNUMBER in /home/nfolds5/public_html/estyn_hulbert/wp-content/themes/storefront-child/functions.php on line 49

    Is there something that I misinterpreted in the steps that are described in that post?

    Any help would be appreciated.

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

Viewing 1 replies (of 1 total)
  • Thread Starter alexWP333

    (@alexwp333)

    Here’s the hook that I’m using in the child theme’s function.php file:

    add_action( 'wp_enqueue_scripts', 'customize_Pretty_Photo_in_child_theme', 99 );
    function customize_Pretty_Photo_in_child_theme(){
            wp_deregister_script('prettyPhoto');
            wp_register_script('prettyPhoto', get_stylesheet_directory_uri().'/custom-js/jquery.prettyPhoto.min.js',
            array( 'jquery'), '3.1.6', true);
            wp_enqueue_script('prettyPhoto');
    }

    The lightbox that I’m using is here.

Viewing 1 replies (of 1 total)
  • The topic ‘How to change/edit the Lightbox settings (a.k.a prettyPhoto)?’ is closed to new replies.