Sign in

Open links in new tab?

  • This topic has 3 replies, 2 voices, and was last updated 2 years, 9 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5350
    Avatar photoNoolitus

    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 photopublii-slpa

    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 photoNoolitus

    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 photopublii-slpa

    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?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.