• Resolved girkers

    (@girkers)


    Loving this plug-in it is working beautifully for us, the only question we have left is, is it possible to have the profile link open in a new Tab/Windows instead of simply changing the page of the site?

    Or even a lightbox, but this may a stretch too far?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    Can you let us know where is the profile page link in the menu or our users listing page?

    Regards,
    Patrik

    Thread Starter girkers

    (@girkers)

    Hi Patrik,

    I am talking about the users’ listing page, we have a menu link to display this page, but then when someone clicks on one of the users, that is where we want the magic to happen.

    Here is the Users’ List

    Thanks

    Hi,

    Can you add the following code in functions.php of the currently active theme or via the Code Snippets plugin and let me know if it helps or not?

    add_action('wp_footer', 'cpp_wp_footer_cb');
    function cpp_wp_footer_cb(){
        ?>
            <script type="text/javascript">
                jQuery( document ).ready(function() {
                    jQuery('.uwp-profile-name .uwp-user-title a').click(function(){
                        window.open(this.href);
                        return false;
                    });
                });
            </script>
        <?php
    }

    Regards,
    Patrik

    Thread Starter girkers

    (@girkers)

    This partially works.

    The display has three (3) links, the banner image, the profile image and the persons title, the aforementioned code only works on the persons title.

    Looking at the styles I tried adding uwp-profile-header, but this made no difference.

    How do I apply this to the whole header irrespective of where the user clicks?

    Hi,

    You can modify or replace with the following code and let me know if it helps:

    add_action('wp_footer', 'cpp_wp_footer_cb');
    function cpp_wp_footer_cb(){
        ?>
            <script type="text/javascript">
                jQuery( document ).ready(function() {
                    jQuery('.uwp-profile-name .uwp-user-title a, .uwp-profile-header a').click(function(){
                        window.open(this.href);
                        return false;
                    });
                });
            </script>
        <?php
    }

    Regards,
    Patrik

    Hi, just a quick follow-up.

    Was the issue solved for you or do you need any help?

    Regards,
    Patrik

    Thread Starter girkers

    (@girkers)

    Sorry, I didn’t get a message that you replied (the first time).

    That is beautiful, works a treat!

    Cheers

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Open Profile in new Window/Tab’ is closed to new replies.