TinyMCE: Move buttons from 2nd row to top row

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

Create special button on WP Tiny MCE Posts Editor for Shortcodes

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

Add class to oEmbed video from within post editor?

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

How to style text in WordPress

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.

How to show the contants in front end same as visual editor with space / linebreak?

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

How do I get access to the CSS Editor

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)