Jump to content

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

Recommended Posts

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

I have managed to put a block button above  my events page www.runatitshouting.co.uk/podcasts

I need to do the same thing for the blog page https://runatitshouting.co.uk/podcasts-blog 

Are you able to help me? Thank you so much! CODE below of the block button above events page.
 

<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 4
  • Views 309
  • 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
On 1/20/2021 at 3:13 PM, tuanphan said:

 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>

 

Can you help me get a Boarder Line under the button as seen on the www.runatitshouting.co.uk/podcasts page.

Thank you so much I really appreciate the help!

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.