Disabled visual editor and WordPress keeps adding line-breaks to my code
This should do the trick: remove_filter(‘the_content’, ‘wpautop’); remove_filter(‘the_content’, ‘wptexturize’);
This should do the trick: remove_filter(‘the_content’, ‘wpautop’); remove_filter(‘the_content’, ‘wptexturize’);
I am not sure if that is built in, but you can try adding something like this to your functions.php function set_publisher( $new_status, $old_status, $post ) { $publisher_id = get_current_user_id(); if ( $new_status == ‘publish’ && $publisher_id > 0) { update_post_meta($post->ID, ‘post_publisher’, $publisher_id); } } add_action( ‘transition_post_status’, ‘set_publisher’, 10, 3 ); And then when you … Read more
I am not aware of clean native solution, however there have been at least one plugin in the past Save Editor Scroll Position (note – very outdated) trying to address this and might serve like prior art. There is also open trac ticket #18943 Scroll back to previous editor position after post save/update, however without … Read more
There are some things to try in this stackoverflow thread. The one I’m trying: add_filter(‘tiny_mce_before_init’, ‘vsl2014_filter_tiny_mce_before_init’); function vsl2014_filter_tiny_mce_before_init( $options ) { if ( ! isset( $options[‘extended_valid_elements’] ) ) { $options[‘extended_valid_elements’] = ‘style’; } else { $options[‘extended_valid_elements’] .= ‘,style’; } if ( ! isset( $options[‘valid_children’] ) ) { $options[‘valid_children’] = ‘+body[style]’; } else { $options[‘valid_children’] .= … Read more
The problem is that the URL to your script is pointing to the Thematic theme directory, not your child theme. Instead of: $plugin_array[‘youryoutube’] = get_bloginfo(‘template_url’).’/editor_plugin.js’; …you need: $plugin_array[‘youryoutube’] = get_stylesheet_directory_uri() . ‘/editor_plugin.js’;
The theme editor is not available on multisite installations. Changing this would require modifications to WordPress Core, that would need to be remade everytime you updated WordPress. I STRONGLY advise against this. Also keep in mind that if one user edits a theme, everyone else using that theme gets the changes. There is only one … Read more
Use the Paste as Text button, or paste into the Text tab instead of the Visual tab.
You probably mean the Distraction Free Writing mode. Am I right? Then you changed wrong ID, it’s #wp-content-editor-container what you want to edit. But every time you hack WordPress core, a kitten dies. So if you like kittens, here is no-offensive solution for you. Put this code into functions.php file in your theme: <?php add_filter( … Read more
You can replace the broken functions.php file, recovering it from the original theme package. From the namespace of your error message I can guess that the theme you are using could be this: https://wordpress.org/themes/catch-box Right? I hope it helps.
Check these links below. This is where the permissions are being set for your pretty link plugin admin menu: pretty-link/prli-main.php -> line 16 – it’s set to administrator you want edit_posts pretty-link/prli-main.php -> line 160 – it’s set to $current_user->user_level >= 8 you want $current_user->user_level >= 7 What are your options? OPTION 1 – Change … Read more