vantagedesign / ace-documentation

A free documentation theme for Hugo, powered by Bootstrap 4. Repsonsive, search, code highlighting and more.

Home Page:https://docs.vantage-design.com/ace/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clicking on a link opens up the page in a new tab.

PRUBHTEJ opened this issue · comments

Is there an option using which, there is a possibility that when the user clicks a particular link, it opens that particular link in a new tab?

Hope to hear from you soon.

@PRUBHTEJ use an anchor tag with target="_blank":

< a href="google.com" target="_blank"></a>

Where should I insert this, so that this works on all the pages?

This is for a single link on a page.
It does not work on menu's and such. If you want it on menu's, modify the links in the theme's partials for the menu and navbar to also include target blank.

Yes, so I want it for all the links, so then what should be the procedure?

https://github.com/vantagedesign/ace-documentation/blob/master/layouts/partials/menu.html

So in partials like this, add target blank to the elements.

Great!
Thank you so much @julianflapper!