Jump to content

Linking Blog Posts to External URLs

Recommended Posts

password: tunika

Hi! This may sound odd, but is there a way to direct blog post's "read more" to external URL links? The reason I am hoping to do this is because my client would like to showcase their writing with the use of tags and categories. Blog posts allow for you to do this, while normal blocks do not. However, I don't actually need the blog feature itself, I just need the "read more" to link directly to the articles she has written. Is this possible?

Link to comment

I'm curious about this as well, or if there is a code plug in that would allow us to generate lists of external links, keyword tagged. I run a website that features free ebooks (on other sites, like Zon, B&N, etc.), and it's grown a lot, so being able to narrow down by keywords or tags would be great - and then click an external link.

Link to comment
  • 1 month later...

I'm also interested in this.

I have found a way to link the 'Post title' to an external URL. So if you click on the title, or the 'excerpt' it will bring you to the source. If you click in the title image however it just brings you to my blank blogpost.

 

I've posted a screenshot from the 'Blog post settings' window that opens when you go to edit the blog in the left side tab. You can see it gives the option to post a source URL and also to link the post to source.

image.png.109d5d9c745b3e9e7dabc4b8a461c188.png

Edited by quinnpassivehouse
Link to comment

I just solved 2 cases yesterday, 1 for blog page, 1 for summary block, each requires a different code.

If you share link to page where you want to apply this, we can help easier

--

This code for blog basic grid in 7.1, add to Code Injection > Footer. If it doesn't work, please share link to page where you have problem, we can check easier

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(".blog-basic-grid .blog-basic-grid--container").click(function(){
		window.location=$(this).find(".blog-title a").attr("href"); 
		return false;
	});
</script>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 5 months later...

Hi @tuanphan we are trying to achieve the same thing on our blog. 

Below is the link to the actual blog page, and we have the summary blocks in two places. 

Any advice on how to achieve these going to new windows and their external links would be great. 

Actual Blog: https://www.thedoveagency.com/blogs

Home Page Summary Block (WINGBEATS is the blog) : https://www.thedoveagency.com/

Secondary Blog Page: https://www.thedoveagency.com/blog

Link to comment
On 11/7/2023 at 1:54 AM, Dovely2023 said:

Hi @tuanphan we are trying to achieve the same thing on our blog. 

Below is the link to the actual blog page, and we have the summary blocks in two places. 

Any advice on how to achieve these going to new windows and their external links would be great. 

Actual Blog: https://www.thedoveagency.com/blogs

Home Page Summary Block (WINGBEATS is the blog) : https://www.thedoveagency.com/

Secondary Blog Page: https://www.thedoveagency.com/blog

See this code

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.