Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Code injection Displaying Div in Header of Shop Page


hyounas12

Question

Site URL: https://iris-owl-xay3.squarespace.com/

https://iris-owl-xay3.squarespace.com/

Password test

 

I am trying to add Paypal credit banner after add to cart button. I was able to add the this  banner to all products by using adding below code in Shop page header page code injection. The code was below 

<div class="paypalcredit"
     style="margin-top:30px;"
    data-pp-message
    data-pp-style-layout="flex"
    data-pp-style-ratio="8x1"
    data-pp-style-color="white-no-border"
    data-pp-amount="ENTER_VALUE_HERE">
</div>   
<script>
   $(function() {
     $(".paypalcredit").insertAfter(".sqs-add-to-cart-button-wrapper");        
   });
</script>

 

It is working fine like below 

image.png.1ac12cbb2a0c2578ae42561221e9e63c.png

 

Now the issue is the shop page is also started showing banner over the menu like below . I don't want the banner to be displayed like this on menu. 

image.thumb.png.929157973e8c44cd73766c20b5efcdae.png

 

 

image.png

Edited by hyounas12
Link to post
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

I see fine here. Do you still need help?

Posted Images

1 answer to this question

Recommended Posts

Create an account or sign in to comment

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


×
×
  • Create New...