Jump to content

Adding 'Back To News' Button and customise 'Back To Events' button

Recommended Posts

Site URL: https://pear-beige-sfbj.squarespace.com/

I have created a 'News' page and an 'Events' page. On an event item, there is at the top of the page, a 'back to events' link with an arrow. I would like to replicate this on each News item, so that users can link back to my 'News' page from within the article. I would also like to change both the 'Back To News' and 'Back To Events' link colour to HEX#399. Please can anyone help me to achieve this?

Website: https://pear-beige-sfbj.squarespace.com/
Website password: 'cyborgsoloists'

Thank you

Link to comment
  • Replies 3
  • Views 398
  • Created
  • Last Reply

Top Posters In This Topic

It looks like you solved color with this CSS

.eventitem-backlink {
    color: #399 !important;
}

With link, add this to /Events/ Page Header

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('.eventitem-backlink').attr('href','/news-2');
});
</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
On 2/21/2022 at 7:49 AM, tuanphan said:

It looks like you solved color with this CSS

.eventitem-backlink {
    color: #399 !important;
}

With link, add this to /Events/ Page Header

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('.eventitem-backlink').attr('href','/news-2');
});
</script>

 

Unfortunately, this has not worked for me. Please could you let me know if I have added this incorrectly? Also, did you mean that I was to add this to /Events/Page Header or to /News/Page Header? I am trying to add the link to my news items.

Thanks

Link to comment
On 2/22/2022 at 5:18 PM, cyborg1234 said:

Unfortunately, this has not worked for me. Please could you let me know if I have added this incorrectly? Also, did you mean that I was to add this to /Events/Page Header or to /News/Page Header? I am trying to add the link to my news items.

Thanks

Add to event page (page where you create individual events)

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.