How to make a customized “Create Gallery” tab in the ‘Add Media’ window?
How to make a customized “Create Gallery” tab in the ‘Add Media’ window?
How to make a customized “Create Gallery” tab in the ‘Add Media’ window?
Added custom styles to Visual Editor. Classes are appended and not replaced as intended
How to add a custom field after wp post
TinyMce in WordPress – Getting the “fullscreen” button to stay on the right when customising button layout
Must be something you have installed or custom code causing the issue, it appears just fine for me. If your question was actually why there’s no additional menu item on the admin side then the answer would be because not every plugin has an admin page, some provide configuration options, others just do something with … Read more
function disable_editor_for_old_posts_wpse_101106($post) { if (strtotime(‘-2 months’) > strtotime($post->post_date)) { remove_post_type_support(‘post’,’editor’); } } add_action(‘add_meta_boxes_post’, ‘disable_editor_for_old_posts_wpse_101106′); I couldn’t find a great hook for this but add_post_meta_boxes_* is early enough, and it passes the $post object to the callback. Basically the filter checks the post on the post edit screen and removes post type support based on the … Read more
This is kind of a 2-parter. The first half will show you how to change the style inside TinyMCE when editing. The second half will show you how to remove things from the toolbar. Style TinyMCE WordPress give us a neat little function called add_editor_style() which accepts an array of stylesheets, either by URL or … Read more
add_shortcode(‘custom_iframe_shortcode’, ‘build_iframe’); function build_iframe($atts) { $defaults = array( ‘source’ => ‘https://example.com/calc.php?tp=dif&cl=beleggen&h=1&wf=19370&country=NL’, ‘script_source’ => ‘//example.com/iframeResizeMe.min.js.gz’ ); $args = shortcode_atts($defaults, $atts); ob_start(); ?> <iframe onload=”fa_iframeresize.do(this);” src=”https://wordpress.stackexchange.com/questions/314518/<?php echo $args[“source’]; ?>” scrolling=”no” width=”100%” style=”padding:0px;margin:0px;border-width:0px;” frameborder=”0″> </iframe> <script type=”text/javascript” src=”https://wordpress.stackexchange.com/questions/314518/<?php echo $args[“script_source’]; ?>”></script> <?php return ob_get_clean(); } then call this like [build_iframe] or [build_iframe source=”https://blah” script_source=”https://blah/blah.js’]
I suspect that clicking the Select Image button on the popup is changing the underlying insertion point or selection in the main editor, but I can’t for the life of me see how I can fix it. I’m afraid I don’t know why exactly the issue happens only when the image is changed, but I … Read more
This might be a limitation of JavaScript. 𪇆 is U+2A1C6 in Unicode, and codepoints above U+FFFF (which need four bytes) are coded via UTF-16 surrogates. And that … sucks. The canonical bug for that in WordPress is #13590 Inserting a 4-byte UTF-8 character truncates data. It was closed as maybe later, because fixing it would … Read more