How to use numbered lists in the post editor?
Check out this plugin: http://wordpress.org/plugins/preserved-html-editor-markup/ It helps clear up some of the inconsistencies between the two tabs.
Check out this plugin: http://wordpress.org/plugins/preserved-html-editor-markup/ It helps clear up some of the inconsistencies between the two tabs.
Solved it. So, in order to move the default buttons from first row to second row, we will need to hook into the mce_buttons filter: function move_mce_buttons_to_top($buttons) { $buttons[] = ‘redo’; // buttons return $buttons; } add_filter(‘mce_buttons’, ‘move_mce_buttons_to_top’); Then, to add the Paragraph drop-down to top row, we will add them as custom styles. Firstly, … Read more
Maybe your theme register a custom stylesheet for the editor, this is possible via the function add_editor_style(). Search for the function in your theme directory, maybe inside the functions.php.
I asked this over on Stack Overflow, and got the following answer from user Howlin: There is a plugin that should help you, it’s called Visual Editor Custom Buttons. Once installed there is an option on the dashboard menu called Visual Editor Custom Buttons, There is an option called Add new Call the new style … Read more
Your functions have nothing to do with each other. Is all you want a button that when clicked adds [tooltips class=”top_tooltip” title=”Your Tooltip here”] Text here [/tooltip] to the editor? — This is currently what your doing — First Function: function tooltip( $button ) is adding your tooltip shortcode Second Function: mce_tooltip( $button ) is … Read more
One idea for the shortcode version, would be to add the custom class via the the native shortcode: then you could add it to your custom wrapper with: add_filter( ’embed_oembed_html’, function ( $html, $url, $attr, $post_ID) { return sprintf( ‘<figure class=”video-container %s”>%s</figure>’, isset( $attr[‘class’] ) ? esc_attr( $attr[‘class’] ) : ”, $html ); }, 10, … Read more
In the latest version of WordPress, there a text color option in the default WYSIWYG, which is TinyMCE. Look for this option: Custom styling for tables is not supported by default in WordPress.
When you use get_the_content() to get your content, you need to apply filters to it to output with formatting. apply_filters(‘the_content’, $content); If you don’t need to do anything with the content before outputting it, you can replace your line $content = get_the_content(‘Read more); print $content; with just the_content(); For reference see apply_filters() and get_the_content() in … Read more
You can check this out – wpgallery plugin, this is how they do it for the shortcode, basically parsing the shortcodes on the client-side, and replacing them back and forth as you click “Visual” or “Text”. Unless you are building a plugin, I would advise you to refrain from using shortcodes – use plain HTML, … Read more
Without being rude, it will probably cost more to fix what you break instead of asking them in the first place! – however, you can’t learn until you break!. If I were you and you are interested in trying to play around with CSS/HTML – then you could always install WordPress locally on your Mac/PC, … Read more