Home › Forums › Calendar Products › Events Calendar PRO › tribe-events-button cannot style
- This topic has 7 replies, 2 voices, and was last updated 8 years, 3 months ago by Geoff.
-
AuthorPosts
-
January 23, 2016 at 11:51 am #1061089GregParticipant
I am seriously struggling with the button styling to use the class tribe-events-button in other places on my site.
If I try to use <div id=”tribe-events”><div class=”tribe-events-button”> etc it doesn’t inherit the styling either. What am I missing?
How can I use the styling in order places outside of the forms provided with the plugin?
January 25, 2016 at 8:35 am #1061869GeoffMemberHi Greg,
Sorry for the trouble with styling!
Are you trying to use the styling on pages outside of the calendar? If so, it’s worth noting that the plugin’s stylesheet does not get loaded on those pages.
If you are using the styles on calendar pages, it’s possible that theme styles are overriding them. If you send me a link where I can see one of the buttons that isn’t styling, then I’d be happy to check it out and see what I can do.
Thanks!
GeoffJanuary 25, 2016 at 12:33 pm #1062070GregParticipantThis reply is private.
January 26, 2016 at 7:43 am #1062536GeoffMemberThis reply is private.
January 26, 2016 at 12:18 pm #1062682GregParticipantThis reply is private.
January 26, 2016 at 12:27 pm #1062683GeoffMemberHi Greg,
That page is unfortunately not considered part of the calendar, which is why the calendar stylesheet isn’t loading and allowing you to use the calendar button class.
You can add a button style to your theme’s stylesheet and use it if you’d like, but the calendar one itself cannot be used. So, for example:
.my-button-class {
background-color: #21759b;
background-image: none;
border: 0;
-webkit-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: none;
box-shadow: none;
color: #fff;
cursor: pointer;
display: inline-block;
font-size: 11px;
font-weight: 700;
letter-spacing: 1px;
line-height: normal;
padding: 6px 9px;
text-align: center;
text-decoration: none;
text-transform: uppercase;
vertical-align: middle;
zoom: 1;
}…then call it on your link:
<a class="my-button-class" href="#">My Button!</a>
Cheers!
GeoffJanuary 26, 2016 at 3:05 pm #1062749GregParticipantGreat thanks Geoff. That works perfectly.
Greg
January 27, 2016 at 7:22 am #1063130GeoffMemberRight on! Thanks for following up and letting me know–I’m glad that helps. 🙂
Geoff
-
AuthorPosts
- The topic ‘tribe-events-button cannot style’ is closed to new replies.