Open Social Icon In New Tab - Question | JoomShaper

Open Social Icon In New Tab

S

Shelby

Template 4 years ago

Hello, i would like to be able to open my SP Page Builder Social Media Addon icons in a new tab. I am using the Ares Murphy template and SP Page Builder (Pro) 3.x. I would specifically like to be able to open my Linked In Social media icon in a new tab. This icon can be seen on this landing page as the second icon in the top section of the page. http://shelbynoel.com/

0
1 Answers
Ariba
Ariba
Accepted Answer
Support Agent 4 years ago #16748

Hello

If you want the social icons to open in a new page instead of the parent window you can use the following method:

Go to this Social Icon addon directory and open site.php file. After that find below code

foreach ($this->addon->settings->sp_social_icons_item as $key => $social_item) {
    $output .= '<span style="display:inline-block;">';
    $output .= '<a href="' . $social_item->url . '">';
    $output .= '<i class="fa ' . $social_item->icon . ' "></i>';
    $output .= '</a>';
    $output .= '</span>';
}

Now, change this line

$output .= '<a href="' . $social_item->url . '">';

to

$output .= '<a target="_blank" href="' . $social_item->url . '">';
0