Jump to content

Use CSS to transform Source URL div into a button?

Recommended Posts

Is there a way to use CSS to transform an event Source URL div into a button?

(without editing the page code in Developer mode)

This code:

<div class="eventitem-sourceurl">Source:: <a href="https://www.theirwebsite.org/shows/theirevent" class="eventitem-sourceurllink" target="_blank">https://www.theirwebsite.org/shows/their event</a></div>

Renders like this:

Source:: https://www.mayoarts.org/shows/blippi-the-musical

I’d rather it were a button. I can give a.eventitem-sourceurllink the same style as a button, but then I get:

Source:: HTTPS://WWW.theirwebsite.ORG/SHOWS/theirevent

I want to:

  1. Remove the text “Source::”
  2. Have the URL show as (the title of the event) rather than the url of it

I’m using an event collection in the Tudor template.

Link to comment
  • Replies 7
  • Views 280
  • Created
  • Last Reply

Top Posters In This Topic

I cut it out and changed it to a button as it had to launch today. Now I have a new issue. The slide-out menu does not show any content. I can reduce the margins and make the column narrower but can't make the content within it larger.

Link to comment
On 5/28/2022 at 4:16 AM, csaw said:

I cut it out and changed it to a button as it had to launch today. Now I have a new issue. The slide-out menu does not show any content. I can reduce the margins and make the column narrower but can't make the content within it larger.

It looks fine to me. Did you solve menu?

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

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.