target = _blank for social short code

del's picture
del
Member

At the top of the page are thinks to the social media sites. I want these sites to open in a new window. How would I write the short code to make this happen?

Here is what the code looks like now.

[social icon ='fa fa-facebook' tooltip='Facebook' link='https://www.facebook.com/cherishkids1'][/social]

lehoa85's picture
Hoa Le
Staff

Hello del,

To open link in new window, please get the attached file (rename to .php instead of .txt) and copy to override to sites\all\modules\drupalexp\modules\dexp_shortcodes\theme.

Thanks,

oceanreef's picture
Ocean Reef
Customer

I too would like to have my social links open in new window, is there a way I can get the file to do this.

Thank you

bruiser_brian's picture
Bruiser Brian
Customer

Hello,

I also want to open my shortcode "button" links in a new window.

How is this possible?

Thanks

jimmy's picture
Jimmy Nguyen
Staff

Hi All,

Please get attached file then extra it to \sites\all\modules\drupalexp\modules\dexp_shortcodes\theme folder to replace for the old one.

Then please clear cache.

Done.

Thanks!

Attachment: 
Attachment
inlabfib's picture
inLab FIB
Customer

Hi Jimmy,

I have the same problem but I can't see the attachment in your post. Could you please send me the file?

Thank you

Anna

bruiser_brian's picture
Bruiser Brian
Customer

Hello,

Thank you for the support, but there is a problem.

There was no existing file called "social.tpl.php" under \sites\all\modules\drupalexp\modules\dexp_shortcodes\theme folder.

I added your your social.tpl.php file anyway to that path, cleared cache, but clicking on a button shortcode to open a pdf did not open in a new window.

Could you please provide an alternative solution?

Thanks

bruiser_brian's picture
Bruiser Brian
Customer

Please ignore my last request.

I solved my issue by editing the file button.tpl.php and adding target="_blank" to the <a>. 

nelslynn's picture
Lynn nelson
Customer

No love here, any other hints??

This, with the new social.tpl.php
[social link="https://www.facebook.com/xxxx/ class="dexp-social-transparent dexp-big-icon" icon="fa fa-facebook" target="_blank"][/social]

Does NOT give a new window when clicking social icons.

And, why all the extra markup? See screenshot of the theme with the demo data imported.

 

Attachment: 
Attachment
lehoa85's picture
Hoa Le
Staff

Hello,

Have you done same Jimmy guide above comment? Please open a ticket (private your infor account) with your site URL, admin account + FTP account. We will help you check and solve the issue.

Thank you.

Daniel2245's picture
Daniel Michael
Member

Using the DW One Page template, how do you get your social icons (at the very bottom of the screen) to open in a new page? In regular old HTML, it’s just target=”_blank” but there is no way to edit that here. Pass4sure SY0-401

alfbarreiro's picture
Alfonso Barreiro
Customer

How do I get the code to add to the shortcode template, so I can do traget=_blank?

jmbell751_103830's picture
john bell
Member

Our authentic collection of genuine examination 70-410 Q&A helps you to prepare and pass the examination in first try. In this training 70-410 brain dumps we have protected all topics and all sectors. 

Pass4sure 70-410 Microsoft Exam

jmbell751_103830's picture
john bell
Member

Definitely Pass4sure 70-347 will instantly growth your enabling office 365 services 70-347 on line test score! Pass4sure offer the very finest quality of actual enabling office 365 services than any other 70-347 online education course released.

Pass Microsoft 70-347 exam with Pass4surekey latest dumps

tomcurse147_103924's picture
Alistan Mike
Member

Free Sample questions are accessible on Dumps4free. website is absolutely updated on routine and all of the study material are freed from price. you'll be able to prepare your CompTIA SY0-401 Exams with the help of our free queries and answers. Our questions are 100% reliable and correct for all students everywhere the world. Visit Dumps4free here you'll be able to find latest CompTIA news and solved questions. Our CompTIA SY0-401 exams dumps are 100% correct and verified by the consultants. For a lot of information and latest examination queries visit Dumps4free.

Attachment: 
Attachment
Nemalkhan121_103945's picture
Nemal Khan
Member

You can use Social Media Shortcode Pack plugin, Registers shortcodes for your posts, pages, or post types that display user profile links to various social media websites. 300-115 Exam Dumps

palorc_104018's picture
Pal Orc
Member

If anyone looking new Cisco 300-115 exam question answers in vce and pdf format without any cost you can download your study material on dumps4free without any cost. Visit dumps4free Cisco 300-115 Exam Training Guide

hectorbill_104136's picture
hector bill
Member

Among the various SY0-401 braindumps providers, (Braindumps4it) is the premier and an authorized SY0-401 Exam dumps provider which offers best SY0-401 Questions Answers for CompTIA Security+ candidates. Here all SY0-401 Exam Questions are approved by the team of Industrial experts. Pass your CompTIA Security+ Exam with our valid CompTIA Security+ SY0-401 dumps in the first shot.

bella-henry71_104183's picture
bella henry
Member

Microsoft 70-410 Installing and Configuring Windows Server 2012 is easy to pass by our testified 70-410 vce test questions answers. We provide you latest 70-410 vce and 70-410 dumps.