Support

Home Forums Event Espresso Premium Event List

Event List

Posted: August 13, 2014 at 8:56 pm


bdeevers

August 13, 2014 at 8:56 pm

Hi
I have an event list that is generating it’s own title and sub-title. Please see http://creativejuiceartbar.com/adult-calendar/

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)


Lorenzo Orlando Caum

  • Support Staff

August 13, 2014 at 9:35 pm

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 );


Lorenzo


bdeevers

August 14, 2014 at 2:08 pm

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


Lorenzo Orlando Caum

  • Support Staff

August 14, 2014 at 3:05 pm

“My category content” does not look familiar. The function should remove it though.


Lorenzo


bdeevers

August 16, 2014 at 6:37 pm

Hi again,
Just throwing this out there, but could that text be coming from a file like event_list_display.php? When I use Firebug I can see that the text is clearly wrapped in an EE div for my list of events. But there is no css assigned to it. Also “My category content” sounds relevant to an EE function. I should note that this appeared after recently updating from EE 3.1.30.7P to 3.1.36.5P

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.


Lorenzo Orlando Caum

  • Support Staff

August 16, 2014 at 7:47 pm

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.


Lorenzo


bdeevers

August 17, 2014 at 3:08 pm

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.


Tony

  • Support Staff

August 18, 2014 at 7:27 am

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.


bdeevers

August 18, 2014 at 9:32 am

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.

Event Espresso