Posted: August 13, 2014 at 8:56 pm
|
Hi We would like to use the WP visual editor to create the title for this page, but the list is automatically dropping in “Adult Class” and “My category content” directly above the event that is listed first. How can I omit those 2 lines of text? I’ve tried css but can’t get rid of both lines that way. I am currently using [EVENT_LIST category_identifier=”adultclass”] on that page. Thanks (EE 3.136.5.P) |
Add this CSS to your child theme’s stylesheet or through a plugin like My Custom CSS: .page-id-252 #events_category_name-1300 {display:none} Then add this to your child theme’s functions.php file or a site specific plugin: function ee_replace_my_category_content_messaging( $translated, $original, $domain ) { $strings = array( 'My category content' => '', ); if ( isset( $strings[$original] ) ) { $translations = get_translations_for_domain( $domain ); $translated = $translations->translate( $strings[$original] ); } return $translated; } add_filter( 'gettext', 'ee_replace_my_category_content_messaging', 10, 3 ); — |
|
|
Hi, the css makes sense to me but i’m a little confused about the php code… isn’t the issue being caused by an EE function – and not from my theme? thank you |
“My category content” does not look familiar. The function should remove it though. — |
|
|
Hi again, The only code that is in my theme’s functions.php file is: require_once(get_template_directory() . ‘/includes/init.php’); I’m afraid that if i add the code you supplied into that file it could break my site. |
Hi, that is a valid concern. We would not knowingly provide sample code that would break your site. With that mentioned, I did an initial search for “My category content” in the event-espresso plugin folder and nothing was found. I then searched for “category content” in the event_list_display.php and nothing was found. You could try the sample code and if it doesn’t work, then you can update this support post. — |
|
|
Hi and thank you… I created a site specific plugin and dropped in your code. Unfortunately the line of text we are trying to eliminate is still appearing. I have contacted my theme developer about the issue and they insist that this is not coming from Pagelines (my theme developer). Any other ideas? I appreciate your assistance. |
Hi bdeevers, Can you go to Dashboard -> Event Espresso -> Categories -> Edit your AdultClass category. Within the Category Description do you have ‘My category content’? You can either remove the content of the description or within the same page you’ll find ‘Display category description on event listings page?’ set that to No and update. Either of those options should remove that line from the page. |
|
|
That worked! Thank you! |
The support post ‘Event List’ 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.