Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Open links in new tab?

  • #5350
    Avatar photo[anonymous]

    Hello!

    Sorry if this has already been discussed before. I searched the forum beforehand but I didn’t find any related topic (but maybe I missearched and I’m simply a dumb person)

    Anyway, is there a way to set the links (external ones) to open in a new window/tab? I mean the classical:

    target="_blank"

    I’m pretty new to Publii (I installed it yesterday) and I didn’t find any option in the settings.

    Once more, please excuse me if this has been already discussed.

    Thank you all!

    .V

    #5353
    Avatar photo[anonymous]

    Links can either be in the menu or anywhere within content.

    If the link you are referring to is within the menu, then you would either either “add menu item” or “edit” one that already exists. Here, you can set “link target” to “new window”.

    If the link is within the content, when you create a link, you have the same “link target” option.

    I have never really had much luck editing a link, I often just recreate it. I assume the same option exists when editing a link.

    https://getpublii.com/docs/post-editor.html#post-editor

    https://getpublii.com/docs/the-menus-screen.html#the-menus-screen

    Cheers!!

    #5354
    Avatar photo[anonymous]

    Thanks for the quick reply, publii-slpa.

    Yes, I refered to the in-post links. The problem is, the option you refers to ; «link target» is only showing when you create a WYSIWYG post. If you write it in Markdown (which is my case), you don’t have this menu.

    #5355
    Avatar photo[anonymous]

    Ahhhh… that is because markdown is limited. We trade convenience for limited.

    I imagine that something could be done within the template and config.json.

    I don’t have a ready answer on that. Sorry.

    I will poke around to see if anything comes to mind. I am kinda new to Publii too.

    I am diving into the deep end head first! Or is it the shallow end?