Skip to content

Open footer social links in a new window/tab #2012

Closed Answered by bjazmoore
plasmidone asked this question in Help
Discussion options

You must be logged in to vote

No - not an easy way as in something you can do in the Publii UI. Your link will need to have the target="_blank" attribute manually added to the theme file. Example:

<a href="https://www.w3schools.com" target="_blank">Visit W3Schools</a>

You will have to edit footer.hbs source in the path: sites/[site_name]/sites/input/themes/mercury/partials. Add the attribute to the code as shown here:

Remember when editing an official theme - create an override to the theme and edit the override - see Theme Overrides for more info.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@plasmidone
Comment options

Answer selected by plasmidone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants