[Resolved] Enabling Custom Post Widget blocks theme TinyMCE buttons
My theme (Photocrati) puts several buttons on the TinyMCE editor. If I enable Custom Post Widget then those theme buttons are “blocked” and don’t show (see image). Theme vendor says that this is a plugin issue so I’m posting here to see if you will look at it. I can do some testing of some ideas if you want me to.
Even though the screenshot clearly shows what is going wrong, I don’t know how to fix this. For the ‘Add Content Block’ button I am using the default WordPress styles, so I am not sure why your theme’s custom buttons disappear.
This might be a CSS/HTML issue, or a conflict in calling the buttons. Could you check in the source of your page if the html code for the buttons is being added?
Thanks for looking at this, Johan. I checked the markup on the page with Custom Content Post enabled and disabled. Screenshot below. From what I can tell when Custom Content Post is enabled then there is no html in the page for the Photocrati buttons.
Ah, so it seems there is some kind of conflict in adding the buttons.
Could you try commenting out line 232 of
Also, can you enable debug in your
wp-config.phpfile to see if any error messages are displayed?
Commenting out line 232 worked as far as the other TinyMCE buttons disappearing. Of course, content block button was not added, but I think you were expecting that. So at least you are honing in on the area of conflict.
I enabled debug and I am seeing a number of errors (more than I cared to see.) But I didn’t see any error that looked like your plugin, or that might be related to the problem.
The only possible issue I can think of is that there is a duplicate function name.
Could you check if the function name
add_content_block_iconis used in the Photocrati theme?
I’ve been searching and I can’t seem to find any reference to add_content_block_icon in the Photocrati files. I also renamed the function in Custom Post Widget to be cpw_add_content_block_icon and that didn’t seem to make any difference either.
Have you already created a support ticket with Photocrati about this issue? They might be using a non-standard method for adding their buttons which causes a conflict. My plugin uses the
media_buttons_contextWordPress function which should allow for multiple buttons to be added.
Hi Norm, did you manage to solve this issue?
Hey Johan… thanks for following up on this. The problem isn’t resolved yet, however, with your help at debugging I documented this and sent it over to Photocrati for resolution. Prior to this I had sent it to them and they claimed it was a plugin error. However, with the debugging information I sent to them they have agreed to fix the problem. I received one patch from them and it did fix the menu problem, but it broke other things so they are still working on it. Last response from them is that they have more work to do on it and it likely will not be fixed until the next major update of the theme.
- The topic ‘[Resolved] Enabling Custom Post Widget blocks theme TinyMCE buttons’ is closed to new replies.