Jump to content

Textlink into a button - event excerpt

Recommended Posts

  • Replies 9
  • Views 795
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

If button same link as title, you can add this code into Design > Custom CSS

.eventlist-title .eventlist-title-link:after {
    content: "Read More";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    top: -50%;
    background-color: black;
    max-height: 50px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    font-size: 16px;
}

If different, please enable text link in excerpt, then we can give code to turn text link to button easier

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 2/17/2022 at 2:18 AM, NJBFIlms said:

Hi, thanks for getting back to me.

 

I have created a text link in the excerpt, what is the code for the button?

 

Thanks

@tuanphan

Which event did you add? I don't see it here

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
  • 6 months later...
On 9/8/2022 at 1:20 PM, MSalas said:

Tuanphan - love to follow up on this, I tried pasting in the code but it resulted in the button floating over my excerpt text. 

https://www.salastina.org/concerts

 

Thank you!

Try this new code

.eventlist-title .eventlist-title-link:after {
    content: "Read More";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    max-height: 50px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    font-size: 16px;
}

 

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
  • 4 weeks later...

Hi @tuanphan 🙂

I could not see how to turn the excerpt into a link to the event (for now its just the title and graphic which is causing some confusion). Do you know if this is possible?

I also tried using the code above to make a button for "event info" but it fails if the except is too long and also in mobile view.
 

Here is a link to our site: https://www.dromtaberna.com/

Thank you again,
Paula

 

Link to comment
On 10/5/2022 at 1:41 AM, singthegreys said:

Hi @tuanphan 🙂

I could not see how to turn the excerpt into a link to the event (for now its just the title and graphic which is causing some confusion). Do you know if this is possible?

I also tried using the code above to make a button for "event info" but it fails if the except is too long and also in mobile view.
 

Here is a link to our site: https://www.dromtaberna.com/

Thank you again,
Paula

 

Yes. If excerpt too long, it will caused problem. You can reduce excerpt length

or add link manually on excerpt.

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

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.