Sounds like there are some sort of javascript errors occurring on your editor screen which are preventing things from working properly. Are you familiar with your browser developer tools at all? The javascript console may provide a lot of insight for what’s going on.
As an example of a recent conflict, we identified conflict issues with https://wordpress.org/plugins/cta/ that we hope to prevent in a future version, and I can provide some immediate support for.
@eschmidtke Any changes on this one?
Thanks for the reply Michael, Sorry your initial response got buried in my gmail and I missed it.
I am not too familiar with javascript but when i go the the console in chrome there are multiple Uncaught Type Errors that appear to be related to a file called load-scripts.php. No idea where this file resides or what to do with this info. As i mentioned i turned off all of my plugins and it didnt fix it. I really need to get this working. I have always used gravity forms and the associated plugin for that is outdated. Please advise! Thank you.
I found the problem. I narrowed it down to my functions.php file and when I eliminate a snippet i picked up somewhere along the way it works. However it is a useful function for me so Im wondering if you might be able to see where the conslict resides?:
// add character count to excerpt textarea in admin
function excerpt_count_js(){
if ('page' != get_post_type()) {
echo '<script>jQuery(document).ready(function(){
jQuery("#postexcerpt .handlediv").after("<div style=\"position:absolute;top:12px;right:34px;color:#666;\"><small>Excerpt length: </small><span id=\"excerpt_counter\"></span><span style=\"font-weight:bold; padding-left:7px;\">/ 220</span><small><span style=\"font-weight:bold; padding-left:7px;\">character(s).</span></small></div>");
jQuery("span#excerpt_counter").text(jQuery("#excerpt").val().length);
jQuery("#excerpt").keyup( function() {
if(jQuery(this).val().length > 220){
jQuery(this).val(jQuery(this).val().substr(0, 220));
}
jQuery("span#excerpt_counter").text(jQuery("#excerpt").val().length);
});
});</script>';
}
}
add_action( 'admin_head-post.php', 'excerpt_count_js');
add_action( 'admin_head-post-new.php', 'excerpt_count_js');
Thanks for your help.
Give this variation a go. I amended it slightly to include our post types from getting the javascript, as well as retaining your page post type.
// add character count to excerpt textarea in admin
function excerpt_count_js(){
//blacklist some post types.
$exclude = array(
'page',
'ctct_forms',
'ctct_lists'
);
// If the current post type is one of our blacklisted items, return early before display.
if ( in_array( get_post_type(), $exclude ) ) {
return;
}
echo '<script>jQuery(document).ready(function(){
jQuery("#postexcerpt .handlediv").after("<div style=\"position:absolute;top:12px;right:34px;color:#666;\"><small>Excerpt length: </small><span id=\"excerpt_counter\"></span><span style=\"font-weight:bold; padding-left:7px;\">/ 220</span><small><span style=\"font-weight:bold; padding-left:7px;\">character(s).</span></small></div>");
jQuery("span#excerpt_counter").text(jQuery("#excerpt").val().length);
jQuery("#excerpt").keyup( function() {
if(jQuery(this).val().length > 220){
jQuery(this).val(jQuery(this).val().substr(0, 220));
}
jQuery("span#excerpt_counter").text(jQuery("#excerpt").val().length);
});
});</script>';
}
add_action( 'admin_head-post.php', 'excerpt_count_js');
add_action( 'admin_head-post-new.php', 'excerpt_count_js');
That worked! Totally appreciate your help not only with with your plugin, but also your efforts to get that conflicting piece of code up and running. Have a great day!
Welcome, glad I could help and thank you for helping track down the source of the conflict.