Jump to content

Help to resize cover images on the event page

Go to solution Solved by Web_Solutions,

Recommended Posts

Site URL: https://www.portanova.pt/agenda

website pass: *******

I have a event posters previously made but when I try to add them to the event page they get cut. Now they are set to a 3:2 ratio mas no matter the ratio I select it always cuts the posters. On summary block, square space resizes them automatically and they fit perfectly but an automatic option is not available on the event page. How can I turn this around? Example on the image attached:

image.png.de14222c870be6a9409a9b2b8b5fa576.pngimage.png.f375c426b94fdcb5e9c038de9048f3d0.png

Edited by VPerfeito
Link to comment
  • Solution

Add these code Design > Custom CSS

[data-section-id="61f98f163ca1ac13750e82e9"] {
  .eventlist .eventlist-event{
    .eventlist-column-thumbnail{
      padding: 0 !important;
      height: auto !important;
      img{
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
      }
    }
  }
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
8 hours ago, Web_Solutions said:

Add these code Design > Custom CSS

[data-section-id="61f98f163ca1ac13750e82e9"] {
  .eventlist .eventlist-event{
    .eventlist-column-thumbnail{
      padding: 0 !important;
      height: auto !important;
      img{
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
      }
    }
  }
}

 

It worked thanks 😉

Link to comment

Add these code Settings > Advanced > Code Injection > HEADER

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$(function(){
  $('[data-section-id="61f98f163ca1ac13750e82e9"] .eventlist-button.sqs-editable-button.sqs-button-element--primary').text("Example Text");
});
</script>

 

Screenshot_175.png

Screenshot_174.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
On 4/13/2022 at 11:17 AM, Web_Solutions said:

Add these code Settings > Advanced > Code Injection > HEADER

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$(function(){
  $('[data-section-id="61f98f163ca1ac13750e82e9"] .eventlist-button.sqs-editable-button.sqs-button-element--primary').text("Example Text");
});
</script>

 

Screenshot_175.png

Screenshot_174.png

Thank you...I dont have premium features. Is there any other way?

Edited by VPerfeito
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.