Home › Forums › Calendar Products › Events Calendar PRO › Remove Country from Address Field in all Views
- This topic has 5 replies, 2 voices, and was last updated 10 years, 5 months ago by
Nico.
-
AuthorPosts
-
October 30, 2015 at 7:11 am #1020229
Sean
ParticipantTrying to remove Country from the address in all views. Have it removed on the single event pages, but its still showing on calendar views and venue pages. Should I be targeting different elements?
.tribe-events-venue-details .tribe-events-address span.country-name, .tribe-events-meta-group dd.location span.country-name { position: absolute; top: -10000px; visibility: hidden; display: none; }October 30, 2015 at 11:40 am #1020362Nico
MemberHi Karly,
Thanks for reaching out, and glad to help you once again here 🙂
Maybe you can target that in a more ‘general’ rule:
span.country-name {
display: none!important;
}
But it’s also possible you’ll need to target the element in a more specific selector for some cases.
Please give my code a try and if you can’t manage to hide the country in a particular view just send me the link and I can help you creating the rule for that,
Have a great weekend,
NicoOctober 30, 2015 at 1:38 pm #1020401Sean
ParticipantThanks for pointing me in the right direction Nico. I was able to hide the Country field by changing what I was targeting.
On a related note, I’ve noticed discrepancies on where we should put custom styles for our calendar. Should we put them in our theme’s CSS file, or in tribe-events/tribe-events.css and tribe-events/pro/tribe-events-pro.css?
November 2, 2015 at 3:53 am #1020669Nico
MemberKarly,
Glad to hear you could work this out!
Regarding where to put the CSS code, technically there’s no difference it’s just a matter of organization. Personally, I would recommend adding the custom CSS code to your theme (or child theme stylesheet) if the customization consists of a few lines. If the custom code starts to grow then it might be better to move it to the appropriate stylesheets/folders you mentioned. This last option might be best if you plan to re-use the customization in other sites.
Please let me know if there’s anything else I can do for you here,
Best,
NicoNovember 2, 2015 at 9:57 am #1020868Sean
ParticipantOkay sounds good Nico. Thank you for the advice!
November 3, 2015 at 6:55 am #1021236Nico
MemberKarly,
I’m closing this topic as the original issue is resolved. As always if you need further assistance just create a new one and we will be happy to help.
Best,
Nico -
AuthorPosts
- The topic ‘Remove Country from Address Field in all Views’ is closed to new replies.
