-
-
hi,
Can you please tell me where to add “blank” parameters to social links in the footer in order to open the links for Facebook, twitter… in a new page ? instead of replace the website page ? It’s better for external link to open in a new page.
Thanks
-
Hello,
For this, you will need to edit theme files. Go to file regn/includes/widgets/regn_socialwidgets.php and find these lines:
if( !empty($facebook) ) echo '<li class="facebook"><a href="'.esc_url($facebook).'"><i class="cl-icon-facebook"></i></a></li>';
All socials are listed like this. In these lines add this code:
target="_blank"
right after the closing double quotes ofhref
attribute. See code above edited:if( !empty($facebook) ) echo '<li class="facebook"><a href="'.esc_url($facebook).'" target="_blank"><i class="cl-icon-facebook"></i></a></li>';
Do the same for all the socials you want to use.
Let us know if you need further guidance.
Best regards!
-
Hi, thanks it’s working for the footer…
But not for the top of header… is there another item to change ?See it on https://www.vitamin-events.fr
Thanks
- This reply was modified 4 years, 4 months ago by Digitale_A.
-
Hi,
For the header please check on includes/codeless_builder/header-elements/cl_header_socials.php
Add the target attribute on the anchor
Thank You
-
-
You’re welcome :)
If you like our theme and support, leave us a rating on Themeforest, it’s very important for us :)
https://themeforest.net/downloads
Thank You so much
-
You must be logged in to reply to this topic.