• Resolved judyosh

    (@judyosh)


    Is there any way to remove the social icons (twitter, fb & g+) from the bottom of the pop-up images (lite version)? I really need to take them off — if someone could help to direct me on what code to comment out (and in what files), I’d GREATLY appreciate it!

    TIA,

    Judy

    https://wordpress.org/plugins/gallery-bank/

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

    (@judyosh)

    Okay, I was able to get rid of the Facebook & Twitter icons by adding the following to the bottom of the PrettyPhoto style.css file:

    .pp_social {display:none;}

    However, I am still having a hard time trying to isolate the Google+ icon — it looks like it is getting called in .js in views/includes_common_after. Any ideas or suggestions?

    Thread Starter judyosh

    (@judyosh)

    I was starting to think that I was going crazy, because I *know* that Google+ icon wasn’t going away. Then, I noticed there was a new s/w update that was made TODAY! I downloaded and installed it, and sure enough, the Google+ icon disappeared! How’s that for service!

    Thank you, Gallery Bank tech support gods!

    Judy

    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

    I tried this but I still have the facebook and twitter icon on my photos.

    How do I remove this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Removing social icons from bottom of pop-up images’ is closed to new replies.