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]
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,
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.
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.
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.
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
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
Hello,
I also want to open my shortcode "button" links in a new window.
How is this possible?
Thanks
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!
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
Please ignore my last request.
I solved my issue by editing the file button.tpl.php and adding target="_blank" to the <a>.
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.
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.
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
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
How do I get the code to add to the shortcode template, so I can do traget=_blank?