Jump to content

option to add a Button Block to the top of an Events Page.??

Recommended Posts

  • Replies 15
  • Views 422
  • Created
  • Last Reply
30 minutes ago, tuanphan said:

Add to Home > Settings > Advanced > Code Injection > Header. Replace beaverhero with your url


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() { 
		$('<a href="https://beaverhero.com" class="sqs-block-button-element--medium sqs-block-button-element t-eventsbutton">Support Us</a>').insertBefore('.eventlist.eventlist--past');
	});
</script>
<style>
  .t-eventsbutton {
    border: 1px solid black;
    padding: 1em;
    color: black !important;
    display: block;
    text-align: center;
    width: 100px;
    margin: 0 auto;
    margin-bottom: 20px;
}
</style>

 

 

Link to comment
15 hours ago, tuanphan said:

 Add to Home > Design > Custom CSS


.eventlist.eventlist--past {
    border-top: 1px solid black;
    padding-top: 20px;
}

 

thank you so much! I am so grateful!

one last thing.

Is there anyway to change the font to the font used in the original block buttons? 

 

Link to comment
3 hours ago, RunatitSHOUTING said:

thank you so much! I am so grateful!

one last thing.

Is there anyway to change the font to the font used in the original block buttons? 

 

edit style code

<style>
  .t-eventsbutton {
    border: 1px solid black;
    padding: 1em;
    color: black !important;
    display: block;
    text-align: center;
    width: 100px;
    margin: 0 auto;
    margin-bottom: 20px;
    font-family: monospace !important;
}
</style>

 

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
8 hours ago, tuanphan said:

edit style code


<style>
  .t-eventsbutton {
    border: 1px solid black;
    padding: 1em;
    color: black !important;
    display: block;
    text-align: center;
    width: 100px;
    margin: 0 auto;
    margin-bottom: 20px;
    font-family: monospace !important;
}
</style>

 

thank you so much ! 

 

that is brilliant one last thing there is a nice space under the button but before the line in my custom made page. Is there anyway to achieve this ?

That would be fantastic! 

Thank you 

Charlie

Screenshot 2020-07-09 at 08.15.40.png

Link to comment
7 hours ago, RunatitSHOUTING said:

thank you so much ! 

 

that is brilliant one last thing there is a nice space under the button but before the line in my custom made page. Is there anyway to achieve this ?

That would be fantastic! 

Thank you 

Charlie

You mean increase spacing between button -line, line - 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.