Stop TinyMCE from deleting empty HTML tags
tinyMCE.init({ … verify_html: false … });
tinyMCE.init({ … verify_html: false … });
If it’s for styling purpose, the fastest solution I could think of is by using Javascript. As far as I know, modifying the output of TinyMCE tag would require editing of WordPress core files, so it’s more practical to append a <span> with Javascript. Something like this would do: <script type=”text/javascript> $(‘.post blockquote’).wrapInner(‘<span />’); </script> … Read more
Do you absolutely have to use qTranslate to do it? If not, read the official documentation for recommended method of translation: http://docs.woothemes.com/document/woocommerce-localization/ Also try any plugin that is made to integrate with WooCommerce such as WPML. Fixing compatibility between two plugins that is not integrated is not really worth the trouble. They are going to … Read more
Create js file button.js and add js directory and list-btn.png needed (function() { tinymce.create(“tinymce.plugins.listbuttons_button_plugin”, { //url argument holds the absolute url of our plugin directory init : function(ed, url) { //add new button ed.addButton(“listbuttons”, { title : “Add Related post shortcode”, cmd : “listbuttons_command”, image : “images/list-btn.png” }); ed.addCommand(“listbuttons_command”, function() { var return_text = “[related]”; … Read more
Question 1: Is it a plugin or hack that can allow one to parse html inside the visual view Neither of both. The visual view is the visual view and not the HTML view. If you want to paste HTML, use the HTML view. Question 2: Is it possible to insert html code to the … Read more
by using jQuery.ajax(): so, instead of that big form variable: $.ajax({ type: ‘GET’, url: ‘admin-ajax.php’, data: { action: ‘get_my_form’ }, success: function(response){ var table = $(response).find(‘table’); // you don’t seem to use this “table” var $(response).appendTo(‘body’).hide(); // … } }); Now, the php: add_action(‘wp_ajax_get_my_form’, ‘get_my_form’); function get_my_form(){ // build your form here and echo it … Read more
Assuming you don’t have the shortcode written down… function search_shortcode() { $struct=”<div class=”searchbar” ><div class=”searchbar-inner” >search <input type=”text” id=”search” /><span class=”result-count” ></span></div></div>”; return $struct; } add_shortcode(‘search_box’, ‘search_shortcode’); Make sure your editor is in the ‘HTML’ mode, and paste the shortcode as ‘search_box’. Using a shortcode will allow you to reuse this form anywhere you want.
It should work just fine if you enqueue your script & stylesheet within functions.php file. This is how I do that (feel free to copy & paste, it should work out of the box): function load_my_admin_js() { wp_register_script(‘jquery-ui’,”https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js”); wp_enqueue_script(‘jquery-ui’); } add_action(‘admin_init’, ‘load_my_admin_js’); function load_my_admin_css() { wp_enqueue_style( ‘jquery-ui’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css’); } add_action( ‘admin_print_styles’, ‘load_my_admin_css’); Don’t forget to … Read more
Have you tried using the plugin linked from one of the answers? This answer specifically. The plugin recommended os called Visual Biography Editor. Apparently it works with the latest version of WordPress and it’s a plugin, so it means no editing any files to enable it.
Since it works on some machines and not on all, chances are good it’s not plugin or theme related. However, be sure to switch to twentyeleven and see if it’s working there, as sometimes theme authors will enqueue scripts like jQuery or TinyMCE from Google CDN, which would be disabled if there’s something (browser or … Read more