Support

Home Forums Event Espresso Premium Removing Category Name

Removing Category Name

Posted: October 4, 2013 at 12:11 am

Viewing 3 reply threads


Nat Davis

October 4, 2013 at 12:11 am

How do you go about removing the category name from a page that uses the EVENT_ESPRESSO_CATEGORY shortcode to show the data.

A good example is this page. There’s multiple instances of the name that we would like to remove.

Cheers. ๐Ÿ™‚


Tony

  • Support Staff

October 4, 2013 at 2:40 am

Hi Nat,

In the page example above the catgory is wrapped within both an ID and a class.

<p id="events_category_name-46" class="events_category_name">Makeup 101</p>

So to target that specific instance of the Category name use the ID in css.

#events_category_name-46{
display: none;
}

To targat ALL category names

.events_category_name{
display: none;
}

Please be aware the Class selection is sitewide and may hide the Category name in unexpected places.


Dean

October 4, 2013 at 2:48 am

Hi,

You may be better off using the EVENTS_LIST shortcode, it is more flexible, can filter by category and doesnt show the category name. https://eventespresso.com/wiki/shortcodes-template-variables/#event-list

If not some css can remove the title, add the following to your themes style.css file or a plugin such as My Custom CSS:

.events_category_name { display:none; }


Nat Davis

October 4, 2013 at 2:37 pm

I thought CSS would do it. Came to me last night, but wanted to be sure.

Thanks. ๐Ÿ™‚

Viewing 3 reply threads

The support post ‘Removing Category Name’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso