Blog post - redirect to external page

JHP_photo
Explorer
50 0 17

Hi Helpdesk, 

I created a blog post that I wan't to directly redirect to an already existing online article. So I don't want the blog post to open in Shopify but directly open an external page.

Pretty sure I missed something...anyway, hope anyone can help. Thanks!

URL: www.jophermans.com

Screenshot 2021-06-18 at 10.26.04.png

0 Likes
Akibhusen
Excursionist
199 37 68

You need to update your HTML structure to get the result. Please follow one from the below given 2 solutions.


Open a link in a new tab:
<a href="{{yourlink will here}}" target="_blank">Open page in new tab</a>

Open a link in a new window:
<a href="{{yourlink will here}}" target="popup" onclick="window.open('{{yourlink will here}}','name','width=600,height=400')">Open link in new window</a>

Akibhusen Shekh | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
JHP_photo
Explorer
50 0 17

@Akibhusen 

That's also good to know, but not what I was look for. Let me try to make it clearer:

When I click the blog image, I want this page to open: https://www.surfline.com/surf-news/north-sea-explorations-with-jop-hermans/56304 

It's an already existing online article. If it opens in a new tab, would be awesome.

 

Screenshot 2021-06-18 at 12.09.51.png

0 Likes
Akibhusen
Excursionist
199 37 68

If you want for a single blog then you can add it's using hard code in your blog template.

OR

If you want an external URL for all your blogs then you need to used metafield app. You can add an external link in this app & called it in your blog template instead of the default blog URL.

Akibhusen Shekh | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
0 Likes
JHP_photo
Explorer
50 0 17

@Akibhusen 

Yea, for some blog posts I would like to have this option, for some I don't. 

So It can't be done unless I use a paid app? No idea how to use a metafield app or which one to choose...can you guide me to a free one?

0 Likes
Akibhusen
Excursionist
199 37 68

Yes, sure.

 

let me check if any free metafield is available or not.

 

Akibhusen Shekh | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
0 Likes
JHP_photo
Explorer
50 0 17

@Akibhusen 

Thanks for your help, I'll check back in later

0 Likes
Akibhusen
Excursionist
199 37 68

Hi @JHP_photo ,

You can use the "Metafields Custom Field Master(https://apps.shopify.com/metafields-manager-by-hulkapps)" app which is free. This app will solve your problem.


Read this post to add additional content to the blog page.

https://www.hulkapps.com/blogs/metafields-master-shopify/guide-center#blog

Akibhusen Shekh | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Akibhusen
Excursionist
199 37 68

HI @JHP_photo ,

 

In the new update, the Shopify provides the options for the meta field. You can check.

Akibhusen Shekh | Shopify Developer
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
0 Likes
JHP_photo
Explorer
50 0 17

@Akibhusen

I get the idea 'metafields' is not what I'm looking for.

Let me rephrase my question.

  1. I created a blog page where I show seperate articles.
  2. When I click the blue image below I want to be forwarded directly to the article on the Surfline website (without opening a Shopify blog article)
  3. How do I do that?

Screenshot 2021-07-13 at 19.24.34.png

I hope you have the answer.

Thanks!

0 Likes