-
Posts
11 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by kathryn
-
-
1 hour ago, kathryn said:
Hi I wonder if anyone can help.
I'm also trying to set up a site so that all external links open in a new tab, but without affecting the site navigation.
I've tried the following:
1. putting this in the header
<base target="_blank"/>
Which worked perfectly, except that now all navigation opened in a new tab.
2. applying this to a block and putting it in the header (in advanced > code injection)
<base #yourBlockId target="_blank"/>
for example <base #block-yui_3_17_2_1_1605228030617_24171 target="_blank"/>
but it didn't do anything
3. I have put "target="_blank to the end of all the Source URLs in blog posts.
Initially I thought this was working, but it seems to be erratic - one will open in a new tab, another won't.
Does anyone have any idea what I'm doing wrong? You can see the site at shopportunity.ie
Any advice would be hugely appreciated!
I also tried targeting the blocks by putting the code into the header on an individual page.
<base #block-f9df908530b3c6b670da target="_blank"/>
<base #block-925ca918fe42cd9c4071 target="_blank"/>
into the header of https://shopportunity.ie/irishonlineaccessoriesstores
but it seems to also work erratically - sometimes affecting the navigation, sometimes not and only working intermittently. I'm totally confused!!
-
Hi I wonder if anyone can help.
I'm also trying to set up a site so that all external links open in a new tab, but without affecting the site navigation.
I've tried the following:
1. putting this in the header
<base target="_blank"/>
Which worked perfectly, except that now all navigation opened in a new tab.
2. applying this to a block and putting it in the header (in advanced > code injection)
<base #yourBlockId target="_blank"/>
for example <base #block-yui_3_17_2_1_1605228030617_24171 target="_blank"/>
but it didn't do anything
3. I have put "target="_blank to the end of all the Source URLs in blog posts.
Initially I thought this was working, but it seems to be erratic - one will open in a new tab, another won't.
Does anyone have any idea what I'm doing wrong? You can see the site at shopportunity.ie
Any advice would be hugely appreciated!
-
Oh wonderful! I thought that as it wasn't showing up when I hovered over the button that it might not be working. Thank you so much for taking the time to help - it's much appreciated!
-
I've got a lot of links out of the site so I thought it would be a good idea to make them all no follow to avoid the site getting penalised, so this looks like exactly what I need.
I've put it into the footer, however I'm not sure that it's working - when I hover over the links I'm not seeing nofollow. Is that how its supposed to be or have I set it up wrong.
You can see the site here: shopportunity.ie
You can see an example of a link out on this page on the button that says VISIT THE GUTTER BOOKSHOP
https://shopportunity.ie/irish-online-store-directory/thegutterbookshop
Any advice would be hugely appreciated!
-
On 5/9/2020 at 9:11 AM, tuanphan said:
Add to Home > Settings > Advanced > Code Injection > Footer
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $("a").attr('rel','nofollow'); }); </script>
Force all external links into a new tab?
in Customize with code
Posted
Hi there. Thanks so much for your reply, it's very kind of you to take the time. I've actually managed to get it to work using the Follow Source URLs setting in the lazy summaries block from square websites.