Home › Forums › Support › Open lightweight social icon in new tab and make nofollow This topic has 1 reply, 2 voices, and was last updated 3 years, 7 months ago by Elvin. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts March 29, 2022 at 10:14 pm #2171887 Daniel Hi team, How do I make the lightweight social icons open in a new tab and also make them nofollow links? Thanks! March 29, 2022 at 10:35 pm #2171893 ElvinStaff Customer Support Hi Daniel, You can use the lsi_icon_rel_attribute filter for this – https://github.com/tomusborne/lightweight-social-icons/blob/8688a7113d61607cfde6d664c4960df30a884cf2/lightweight-social-icons.php#L95 It should already have nofollow by default. You can add the rest of the attributes you want with PHP. Example: add_filter( 'lsi_icon_rel_attribute', function() { return 'rel=nofollow target="_blank"'; } ); Here’s how to add PHP – https://docs.generatepress.com/article/adding-php/ Let us know if you need further clarification. 🙂 Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In