Remove price from list view only

Home Forums Calendar Products Events Calendar PRO Remove price from list view only

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1130260
    tobak
    Participant

    Hello.

    I would like the price (cost) of an event to be displayed on that event’s own page (as it is now) but not in the list view. However, price is displayed using a single CSS class, and thus setting this to display: none will remove the price from every page. Is there a simple way to remove it from list view but not single event view?

    #1130452
    Cliff
    Member

    Hi Tobak.

    This CSS snippet should be what you’re looking for:

    body.post-type-archive-tribe_events.events-list .tribe-events-event-cost {
    display: none;
    }

    You can add custom CSS code via your child theme’s style.css file or via a plugin like Simple Custom CSS or, my favorite, Jetpack. Jetpack supports regular CSS and the LESS and Sass pre-processors.

    If you’re not a CSS expert, Jetpack’s Custom Design reference may prove helpful.

    Please let me know how it goes for you.

    #1130815
    tobak
    Participant

    Yes this works just fine. Thanks.

    #1130936
    Cliff
    Member

    I’m glad that worked for you. Have a great day!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove price from list view only’ is closed to new replies.