Support

Home Forums Event Espresso Premium WYSIWG editor for Event Overview missing – Theme Conflict

WYSIWG editor for Event Overview missing – Theme Conflict

Posted: July 24, 2013 at 11:48 pm

Viewing 6 reply threads


cdaponte

July 24, 2013 at 11:48 pm

Hi guys,
Basic issue is the visual editor toolbar has dissapeared in the event overview section of EE (3.1.33.3.P. WP 3.5.1). So after a year of putting up with this issue, I’ve finally been able to nail it down to a conflict with the Theme I’m using (theme: Good News V4.8.1 by Momizat Team). Highly annoying! So I need your help to either resolve the conflict or direct me to a trusted theme provider that you know will work because I don’t want to spend money on a premium theme unless I know EE has no issues with it.

thanks!
Carlos


Josh

  • Support Staff

July 25, 2013 at 7:42 am

Hi Carlos,

You have some good options with any theme from WooThemes, StudioPress, or every theme in the wordpress.org theme repository:

http://www.woothemes.com/
http://www.studiopress.com/
http://wordpress.org/themes/

Alternatively, it’s possible to add a little function to your current theme to disable what’s disabling the visual editor for the event editor only. What happens is some themes will add extra buttons to the visual editor with the intent of using it for posts and pages. In some cases this will break the event editor.

If you can copy and paste the contents of the theme’s functions.php file into a github gist or a pastebin and post a link to the code here we can take a look and offer suggestions.

http://pastebin.com/
https://gist.github.com/


cdaponte

July 25, 2013 at 11:12 am

Hi Josh thanks for the help.

I set up a user account for you on a test site running EE and my theme. Figured that way you guys can give a test and see if things change.

http://sustainableelements.ca/emarebuild/wp-admin
login: moderated
pass: moderated
I appreciate it! Definitely do not like the prospect of changing themes to accommodate EE.

thanks!
C

  • This reply was modified 11 years, 2 months ago by Josh. Reason: please do not post admin credentials for a live site in a public forum


Josh

  • Support Staff

July 25, 2013 at 11:37 am

You can try adding something like this to the end of the theme’s functions.php file, just before the closing ?> tag:

if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'add_new_event' || $_REQUEST['action'] == 'edit')) {
    remove_action('admin_enqueue_scripts', 'momizat_admin_init');
}


cdaponte

July 25, 2013 at 3:19 pm

I added that to the function.php file, however it had no affect 🙁

the function.php file now looks like this

<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”><?php
require_once (TEMPLATEPATH . '/framework/main.php');

if (isset($_REQUEST['action']) && ($_REQUEST['action'] == 'add_new_event' || $_REQUEST['action'] == 'edit')) {
remove_action('admin_enqueue_scripts', 'momizat_admin_init');
}

?>


cdaponte

July 25, 2013 at 3:20 pm

Ignore the previous code snippet…it didn’t paste correctly

<?php
require_once (TEMPLATEPATH . ‘/framework/main.php’);

if (isset($_REQUEST[‘action’]) && ($_REQUEST[‘action’] == ‘add_new_event’ || $_REQUEST[‘action’] == ‘edit’)) {
remove_action(‘admin_enqueue_scripts’, ‘momizat_admin_init’);
}

?>


Josh

  • Support Staff

July 26, 2013 at 8:20 am

There may not be a hook that can be used here, it looks like it’s the tinyMCEbuttons that get added though. Having admin access doesn’t give me access to all the theme’s files, so I can’t be sure.

What’s happening is the Event Espresso editor does not support loading in custom tinyMCEButtons, and from what I can tell the theme is loading these in on every page of the admin.

What you could do is check with the theme author and ask them if they can recommend a way to only load these buttons on the post/page editor (similar to how they’re correctly only loading the scripts as needed in the momizat_admin_init function.)

Viewing 6 reply threads

The support post ‘WYSIWG editor for Event Overview missing – Theme Conflict’ 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