Jump to content

Setting different title-text positions on slideshow banner

Go to solution Solved by creedon,

Recommended Posts

Posted

Hi all,

I've got a bit of an issue.

I have a slideshow banner implemented on my site. Style wise, I want the first image to have the hero on the left, and the text on the right (Capture 1, attached).

I want the SECOND image in my slideshow to have the hero on the right and the text on the left (Capture 2, attached).

However, when I was on the second image settings, and I set the text position to the left, it then also moved the text position on my first image (Capture 3, attached).

As you can see, this looks wrong. Is there no way for me to be able to set a specific text position on each image, separately from the other images?

Thanks in advance!

Nick

 

Capture 1.PNG

Capture 2.PNG

Capture 3.PNG

Posted

@nickelus The hero images on each banner slide are currently set to 100% width, covering the entire slide. As a result, the positioning of the hero image cannot be adjusted as you indicated. However, we can reposition the text to either the left or right through custom code implementation.

One potential solution could be the modification of the hero images themselves using tools like Photoshop or Canva to ensure the athlete or human figure is correctly positioned. For example, you can place the athlete on the right side for the first hero image. Then, we can implement custom code to move the text to the desired right-aligned position.

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Posted

Hi Lesum,

Thanks so much for your reply.

I'm not sure I quite understand. 

I am happy with the positions of the girl in each slide. 

In slide one the jumping girl should be on the left, with the text on the right (as in my first attachment).

In slide two, the girl is on the right and the text should be on the left.

The problem is that when I move the text to the left, in slide two, it also affects the text in slide one, making the text now cover the jumping girl.

Is there code you can suggest that will allow me to position the text differently on each slide image?

Thanks again for your help! 🙂

  • Solution
Posted

Pick an alignment that will cover the majority of your card positions. Then override individual slide alignments as needed. So for your second image add the following to Website > Website Tools > Custom CSS.

[ data-section-id="64c557f15811fe41b721a33e" ] .user-items-list-banner-slideshow .slide:nth-child( 2 ) {

  justify-content : flex-start;
  
  }

This is for v7.1 and specific to the element the poster choose.

Note the data-section-id which is the ID for the particular section under discussion. Also not the nth-child which let you pick which slide to work with.

ScreenShot2023-09-09at7_07_27PM.thumb.png.446ba6ea273c7ee7d28f33d9b6d05b98.png

You might want to get a little more space around the card with the built-in setting as when the viewport gets narrow the text overlays the arrows.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Posted

Hi Creedon,

Thanks so much for your help - this appears to have worked!

So to confirm, if I wanted to change anything on slide 3, I would change the nth value to 3. Correct?

Can you elaborate on what you mean by ''You might want to get a little more space around the card with the built-in setting as when the viewport gets narrow the text overlays the arrows.''?

Specifically the 'space around the card' comment?

Many thanks!

 

Posted
Quote

if I wanted to change anything on slide 3, I would change the nth value to 3. Correct?

Yes.

Quote

Can you elaborate on what you mean by ''You might want to get a little more space around the card with the built-in setting as when the viewport gets narrow the text overlays the arrows.''?

I believe there is a setting that you can set that adjusts the padding around the text. I noticed that when the viewport got narrow the text overlapped the arrows with your current setting.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.