I have enabled the User Account Button which adds the icon to the main menu. I am wondering if there is some CSS or a way to open that link in a new tab.
I have that setup to send them to a customer portal and I'd rather it not open in the same window so they can get back to the site.
Thank you for the reply, but this doesn't really help me because the User Account Button is not listed in the menu. Do you have I'm sure this could be accomplished with some CSS.
You will need a small snippet of JavaScript to handle it. You can copy and paste this entire snippet into the "Custom JS Code" in the Salient options panel > general settings > css/script related tab:
<script>
jQuery(document).ready(function($){
jQuery('#top nav ul #nectar-user-account a').attr('target','_blank');
jQuery('#header-outer #top .mobile-user-account').attr('target','_blank');
});
</script>
Hi, following on from this, is there a way to change the icon? so instead of icon-salient-m-user it is an upload icon? (Where can we find the list of available icons used in the theme?)
I have enabled the User Account Button which adds the icon to the main menu. I am wondering if there is some CSS or a way to open that link in a new tab.
I have that setup to send them to a customer portal and I'd rather it not open in the same window so they can get back to the site.
Hello Adam,
Thanks for keeping in touch.
Please refer to this documentation on how you can add an external link to open the user account on a new window:https://www.wpbeginner.com/plugins/how-to-open-external-links-in-a-new-window-in-wordpress/.
Thanks.
Thank you for the reply, but this doesn't really help me because the User Account Button is not listed in the menu. Do you have I'm sure this could be accomplished with some CSS.
Hey Again,
You will need a small snippet of JavaScript to handle it. You can copy and paste this entire snippet into the "Custom JS Code" in the Salient options panel > general settings > css/script related tab:
Thanks
ThemeNectar Support Team
Perfect! Thank you!
Hi, following on from this, is there a way to change the icon? so instead of icon-salient-m-user it is an upload icon? (Where can we find the list of available icons used in the theme?)
Hello Ali,
Please try this css:
Thanks.