How to modify anchor tag

Posted in: Newspaper
Post count: 3

Hi guys!

I’m working on a news aggregator site, and I want to open the source url if the user click to a post. I can change the url with post_link hook, but I don’t find any way to add target=”_blank” to anchor tags.

Can you help me please, how can I add this?
Same for the post image anchor.

Thank you!

Post count: 35449

Hi,

So you want to make an anchor link. In order to make an anchor link, you need to set to a row an id, and set the link to that page plus the id like this ->
https://www.screencast.com/t/dzsIlRQFx
https://www.screencast.com/t/7yBu0LhdYDrO here you can check the option open in new widow ->https://i.imgur.com/9AgvOcY.png
So when the button is clicked it will link to that page and to that row ID.

Hope this will help you!
Thank you!

Post count: 4

Hi Calin,
I have tried your solution to add an anchor, however I only receive a 404 error when I check it. I see in this thread you have posted this solution multiple times, yet it is not working for me. Can you please clarify if there is an additional step?

See screenshot of how I added the row ID “aboutrow” https://snipboard.io/6rmlNL.jpg. It is on the homepage, so if I now enter the url https://homepage.com/aboutrow then I get the 404 page not found error.

Post count: 27744

Hello,

I think you forgot to set the sign “#” in your URL => https://homepage.com/#aboutrow

Let me know the results!

Thank you!

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