Home › Forums › Calendar Products › Events Calendar PRO › Button layout
- This topic has 10 replies, 3 voices, and was last updated 9 years, 8 months ago by
playmakerne.
-
AuthorPosts
-
September 4, 2016 at 11:36 pm #1159894
playmakerne
ParticipantHi, I got excellent help for creating a button in the events template in this thread: https://theeventscalendar.com/support/forums/topic/add-a-button-to-the-event-template/
Thank you very much for that.However the thread was closed down, before we got to make the layout on the button (for details, please read the thread).
Can someone help me with this?
Kind Regards,
ChristineSeptember 6, 2016 at 12:14 am #1160204Geoff B.
MemberGood evening Christine and welcome back!
Thank you for reaching out to us.
I would love to help you with this topic.Could you point me towards a URL on your website where the button currently is so that I can tweak the styling with you ?
Best regards,
Geoff B.
September 6, 2016 at 12:55 am #1160223playmakerne
ParticipantThat sounds good.
If the button looks something like the turqoise button in the upper right corner of this site, it’s good: http://ny.playmakerne.dk/tilbud/
Christine
September 7, 2016 at 12:05 am #1160790Geoff B.
MemberGood evening Christine,
Thank you for showing me the button you would like to use an example for your styling.
However, I am actually looking for an example of the unstyled link on your site (TILMELD).
Somehow I can’t seem to find it ?Have a great day!
Geoff B.
September 7, 2016 at 11:54 pm #1161381playmakerne
ParticipantOh sorry, I misunderstood you.
The unstyled link is only present at the top of this event at the moment: http://ny.playmakerne.dk/event/aalborg-bibliotekerne/
Christine
September 8, 2016 at 2:46 pm #1161769Geoff B.
MemberGood evening Christine,
Thank you for the URL.
To style the button is a 2 step process:
- You will need to add a CSS class to it
- You will need to add the following CSS rule
1. Change your snippet to
/* Tribe, insert event website ask enrol link before event content */
function tribe_enrol_link ( ){$website = tribe_get_event_website_url( );
// bail if no website
if ( empty( $website ) ) return false;echo ‘TILMELD‘;
}2. Here’s the CSS code to add
.tilmeldbutton {
margin: 0 2% 20px;
height: 38px;
background-color: #5cc4b7;
border-color: #5cc4b7;
color: #140667;
font-family: 'Open Sans', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
font-size: 14px;
line-height: 36px;
font-weight: bold;
font-style: normal;
text-transform: uppercase;
padding: 0 28px;
text-align: center;
border-width: 2px;
border-style: solid;
-webkit-border-radius: 20px;
border-radius: 20px;
}Let me know how that goes.
Best regards,
Geoff B.September 9, 2016 at 12:28 am #1161901playmakerne
ParticipantThank you for your reply,
I changed the snippet, but it made the link disappear, so I reinserted the old snippet, and the link came back.
I added the CSS to the style.css sheet (Is that where I was supposed to add it?) It didn’t work – neither with the old snippet nor the new one.
Thank you for your patience!
ChristineSeptember 9, 2016 at 11:13 am #1162177Geoff B.
MemberGood afternoon Christine,
My bad, somehow the code update for the snippet did not render properly in my previous reply.
This is why my solution did not work.Please find the correct updated snippet here: https://gist.github.com/GeoffEW/30fb1f8909fd6c0320edf5321caaf3eb
And yes, adding these rules to your theme’s style.css file will work.
Let me know how that goes.
Best regards,
Geoff B.September 11, 2016 at 11:47 pm #1162655playmakerne
ParticipantIt works perfectly now. Both the link and the layout.
Thank you very much for your patience and your help.
Best Regards
ChristineSeptember 12, 2016 at 10:51 am #1162899Geoff B.
MemberGood afternoon Christine,
I am so glad this worked out for you!
You are welcome back on our support forums any time 🙂
For now, I am going to close this thread.
Have a great week!
Geoff B.
-
AuthorPosts
- The topic ‘Button layout’ is closed to new replies.
