Jump to content

Add a Button Block to the top of my Blog Page??

Recommended Posts

Site URL: https://runatitshouting.co.uk/podcasts

I have a "SUPPORT US" button above my events page www.runatitshouting.co.uk/podcasts 

Now I am changing my podcasts page to a blog format and would like to do the same thing on my blog page https://runatitshouting.co.uk/podcasts-blog (Put a SUPPORT US button at the top of this page)

Are you able to help me? Thank you so much!

This was the CODE for the events page.  Now I need is slightly personalised for the BLOG page. Thank you!
 

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() { 
        $('<a href="https://runatitshouting.co.uk/donate" class="sqs-block-button-element--medium sqs-block-button-element t-eventsbutton">SUPPORT US</a>').insertBefore('.eventlist.eventlist--past');
    });
</script>
<style>
  .t-eventsbutton {
    border: 2px solid black;
    padding: 1em;
    color: black !important;
    display: block;
    text-align: center;
    width: 150px;
    margin: 0 auto;
    margin-bottom: 20px;
    font-size: 20px
}.eventlist.eventlist--past {
    border-top: 1px solid black;
    padding-top: 20px
}
</style>
<style>
  .t-eventsbutton {
    border: 2px solid black;
    padding: 1em;
    color: black !important;
    display: block;
    text-align: center;
    width: 150px;
    margin: 0 auto;
    margin-bottom: 20px;
    font-family: monospace !important;
}
  .eventlist.eventlist--past {
    padding-top: 50px;
    margin-top: 50px;
}

</style>

Link to comment
  • Replies 1
  • Views 639
  • Created
  • Last Reply

Add to Blog Page Header

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() { 
        $('<a href="https://runatitshouting.co.uk/donate" class="sqs-block-button-element--medium sqs-block-button-element t-eventsbutton">SUPPORT US</a>').insertBefore('div.blog-list');
    });
</script>
<style>
  .t-eventsbutton {
    border: 2px solid black;
    padding: 1em;
    color: black !important;
    display: block;
    text-align: center;
    width: 150px;
    margin: 0 auto;
    margin-bottom: 20px;
    font-size: 20px
}
</style>
<style>
  .t-eventsbutton {
    border: 2px solid black;
    padding: 1em;
    color: black !important;
    display: block;
    text-align: center;
    width: 150px;
    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

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.