Hello community.
I come from this topic: https://wpforo.com/community/how-to-and-troubleshooting-2/open-all-external-links-in-a-new-navigation-tab/
And I still have not solved it, some external links open in the same navigation tab
Any definitive solution?
A greeting.
Hi @hector,Â
Links usually open in a new tab (at least for my wpforo installation, and also here on this forum). Â
Sample link:Â
There is a box "Open link in a new box" unchecked (that you can check and uncheck). Like in the attached screenshot.Â
If you look at the {;} source code, you will see this code for the above sample, like so:Â
<p><a href="https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/" target="true"> https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/</a></p> Â
If you check the "Open link in a new box", like in the sample link below (which should open in a new tab) the source code should look like this:Â
<p><a href="https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/" target="true"> https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/</a> Â </p>Â
If for some reason, some links does not open for you on your forum, just add a little snippet of code:Â
target="blank" after the href part of the link. Just add "space" then target="blank"
of the link that you want to open in a new tab.Â
This should also open in a new tab:Â
And this is the code:Â
<p><a href="https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/" target="blank"> https://wpforo.com/community/general-forums-bug-reports/some-external-links-do-not-open-in-a-new-navigation-tab/</a></p> Â
You might also have a plugin that is conflicting with the way the links on wpforo opens. Because in my own installation, the links always open in a new tab. Maybe you just need to see if the specific link that you want to open in a new tab, has the "Open link in a new box" checked.
Good luck and God bless you! 🙂Â
When a user posts external links in the topics or replies, it is generally not noticed if the attribute target = "true" or target = "blank"
These attributes should be placed on all links, regardless of whether or not they are logged in.
I still can't solve my problem ...
Hello again.
I have a forum for testing, and without touching the editor put a URL directly in the topic, and as expected this URL opens in the same browser tab
See topic: https://artesanosdelsoftware.info/foro-principal/php/
This installation has the Twenty Sixteen theme ( https://wordpress.org/themes/twentysixteen/) and the wpForo plugin, there is no other plugin installed.
Any idea why this is happening?