Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor gallery-bank

    (@gallery-bank)

    Hi,

    Thank you for contacting us!

    In order to remove the social media sharing buttons,you need to make some changes manually in jquery.prettyPhoto.js file.

    To locate jquery.prettyPhoto.js file, you need to follow the mentioned path which is given below:

    gallery-bank > assets > js > jquery.prettyPhoto.js.

    When you open this file, you need to go to the line no : 402.

    Here you need to remove the html code inside the social_tools & set it as social_tools : ‘ ‘

    This will sort out you issue.

    If you still have any doubt, please don’t hesitate to get back to us!

    Thanks & Regards

    Support Team
    Tech Banker

    Hi,

    I’m using Gallery Bank and I’ve done what you’ve talked about regarding getting rid of the social media icons at the bottom of the pop-up pages and nothing is working. I’m a bit frustrated by this…can you offer any other ways to get rid of these?

    Rich

    Plugin Contributor gallery-bank

    (@gallery-bank)

    Hi,

    Thank you for contacting us!

    In order to solve this issue, you need to make changes manually in the
    include_common_after.php file.

    For this firstly you need to locate this file in the mentioned path which is given below:

    gallery-bank>front_views>include_common_after.php

    After opening this file, you need to go to near the Line No. 236 & you will find this code which is given below:

    <script type="text/javascript">
            jQuery(document).ready(function () {
                jQuery("a[rel^=\"<?php echo $unique_id;?>prettyPhoto\"]").prettyPhoto
                ({
                    hook: "rel",
                    animation_speed: <?php echo $lightbox_fade_in_time;?>,
                    slideshow: <?php echo $slide_interval * 1000; ?>,
                    autoplay_slideshow: <?php echo $autoplay;?>,
                    opacity: 0.80,
                    show_title: false,
                    allow_resize: true,
                    deeplinking: false,
                    changepicturecallback: onPictureChanged
                });
            });
            function onPictureChanged()
            {
                var google_plus_icon = "<g:plusone data-action='share' href='"+ encodeURIComponent(location.href.replace(location.hash,'')) +"' width='160px' style='margin-left:5px; display:inline-block;'></g:plusone>";
                jQuery(".pp_social").append(google_plus_icon);
                jQuery(".pp_social").append("<script type='text/javascript'>\
                (function() { \
                var po = document.createElement('script');\
                po.type = 'text/javascript';\
                po.async = true;\
                po.src = 'https://apis.google.com/js/plusone.js';\
                var s = document.getElementsByTagName('script')[0];\
                s.parentNode.insertBefore(po, s);\
                })(); <" + "/" +  "script>");
            }
        </script>

    You need to replace that entire code with this

    <script type="text/javascript">
            jQuery(document).ready(function () {
                jQuery("a[rel^=\"<?php echo $unique_id;?>prettyPhoto\"]").prettyPhoto
                ({
                    hook: "rel",
                    animation_speed: <?php echo $lightbox_fade_in_time;?>,
                    slideshow: <?php echo $slide_interval * 1000; ?>,
                    autoplay_slideshow: <?php echo $autoplay;?>,
                    opacity: 0.80,
                    show_title: false,
                    allow_resize: true,
                    deeplinking: false
                });
            });
        </script>

    This should fix the problem.

    If you still have any doubt, please don’t hesitate to get back to us!

    Thanks & Regards

    Support Team
    Tech Banker

    Hi and thank you so much for getting right back to me. I replaced the code with what you provided and that got rid of the Google icon but I’m still left with the Facebook one. What do you suggest?

    Plugin Contributor gallery-bank

    (@gallery-bank)

    Hi,

    This is the best we could offer.

    Rest is added by the Prettyphoto script.

    Thanks & Regards

    Support Team
    Tech Banker

    Hi,

    Again, many thanks for your prompt help and thank you for a great plug-in! You can check me out at https://www.richbuyer.com.

    Plugin Contributor gallery-bank

    (@gallery-bank)

    Hi,

    Thank you for your reply!

    Thanks & Regards

    Support Team
    Tech Banker

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove social media sharing buttons’ is closed to new replies.