[xFv] Well-known member Mar 8, 2016 #1 As the title suggests, I am looking for a way to open ONLY links inside of posts in a new tab. Is there a way this can be done? Thank You!
As the title suggests, I am looking for a way to open ONLY links inside of posts in a new tab. Is there a way this can be done? Thank You!
wang Well-known member Mar 8, 2016 #2 Cylent1 said: As the title suggests, I am looking for a way to open ONLY links inside of posts in a new tab. Is there a way this can be done? Thank You! Click to expand... The external links already open in a new windows. To do that with internal links too, an add on or custom developement is needed. If you are not opposed to editing files, find this bit of code it at the String.php file in the Helpers folder. PHP: if ($isInternal) { $target = ''; $class = 'internalLink'; $type = 'internal'; } And change it to: PHP: if ($isInternal) { $target = '_blank'; $class = 'internalLink'; $type = 'internal'; } Upvote 0 Downvote
Cylent1 said: As the title suggests, I am looking for a way to open ONLY links inside of posts in a new tab. Is there a way this can be done? Thank You! Click to expand... The external links already open in a new windows. To do that with internal links too, an add on or custom developement is needed. If you are not opposed to editing files, find this bit of code it at the String.php file in the Helpers folder. PHP: if ($isInternal) { $target = ''; $class = 'internalLink'; $type = 'internal'; } And change it to: PHP: if ($isInternal) { $target = '_blank'; $class = 'internalLink'; $type = 'internal'; }
[xFv] Well-known member Mar 8, 2016 #3 @wang Thank You very Much! This worked Awesome! Upvote 0 Downvote