User Profile Website Link Opens in Same Windoow

This topic contains 3 replies, has 2 voices, and was last updated by  Jeff Adams 5 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2952

    Jeff Adams
    Buyer
    Post count: 1780

    Is there a way to make it so the website link for a users’ profile, on the left side, doesn’t open in the same window?

    #2954

    Jeff Adams
    Buyer
    Post count: 1780
    #2963

    Patrik
    Moderator
    Post count: 1971

    Hi Jeff,

    You can use jQuery to add target into the URL. Try the following code in your current theme’s functions.php file:

    
    
    add_action('wp_footer', 'wp_footer_cb');
    function wp_footer_cb(){
        if(is_uwp_profile_page()) {
            ?>
            <script type="text/javascript">
                jQuery('.uwp-profile-extra').find('a').attr("target", "_blank")
            </script>
            <?php
        }
    }

    Let me know if it works for you or not.

    Regards,
    Patrik

    #2966

    Jeff Adams
    Buyer
    Post count: 1780

    Yes, sweet, thanks!!!!!

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket