Remove Country from Address Field in all Views

Home Forums Calendar Products Events Calendar PRO Remove Country from Address Field in all Views

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1020229
    Sean
    Participant

    Trying 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;
    }
    #1020362
    Nico
    Member

    Hi 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,
    Nico

    #1020401
    Sean
    Participant

    Thanks 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?

    #1020669
    Nico
    Member

    Karly,

    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,
    Nico

    #1020868
    Sean
    Participant

    Okay sounds good Nico. Thank you for the advice!

    #1021236
    Nico
    Member

    Karly,

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Remove Country from Address Field in all Views’ is closed to new replies.