How to open author's link in new tab

Posted in: Newspaper
Post count: 31

Hello!
I noticed that I can tell that a link in a post should be open in another tab but I do not see that function for a link in a Author website or FB or any other. Is there a way to make that link open in a new tab?
Regards

Post count: 22421

Hello,
If you mean the author profile, then you will have to add target=_blank to the link by altering the theme code. Here is a refference to the html https://www.w3schools.com/TAGs/att_a_target.asp
You will have to edit the theme code in order to be able to open author links in another tab: https://www.screencast.com/t/MH4bFttuMf

Thank you!

Post count: 31

Sorry, I got confused. How do I access this page https://www.screencast.com/t/MH4bFttuMf?
Thanks

Post count: 22421

Hello,

That is not a page. It is a file. A php file. You access it via ftp on your server

Thank you!

Post count: 31

Hi,
O tried to change that file but it looks just the same. Can you please tell me what part of that author file I should change and what code I should write?
Regards

Post count: 20688

Hi,

I believe this is a misunderstanding. By default when the author name is clicked in the author box on the post page, it will open in the same page
https://www.screencast.com/t/1fjcCsa6Xq
In order for the link to open in a new tab, this is the file and the line of code where you can do that
https://www.screencast.com/t/uQgD8whhC
Carefully edit the link and add the target property like this
https://www.screencast.com/t/gXdobVX3N
https://www.screencast.com/t/xbBF8Tgy
Place the target property just before the first closing bracket >

target="_blank"

After making the change in the code, please clear all caching and check the results. The author name when clicked inside the author box present in the post page, should open in a new tab.

Thanks

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.