Working on fixing wp-front-end-editor, encountering undefined index
Working on fixing wp-front-end-editor, encountering undefined index
Working on fixing wp-front-end-editor, encountering undefined index
Solution used: // decide to show or hide the widgets function check_for_using_template(selected){ if (selected == “page-templates/core-front-page.php”){ jQuery(“#page-core-home-1”).show(); jQuery(“#page-core-home-2”).show(); jQuery(“#page-core-home-3”).show(); jQuery(“label[for=”page-core-home-1-hide”]”).show(); jQuery(“label[for=”page-core-home-2-hide”]”).show(); jQuery(“label[for=”page-core-home-3-hide”]”).show(); }else{ jQuery(“#page-core-home-1”).hide(); jQuery(“#page-core-home-2”).hide(); jQuery(“#page-core-home-3”).hide(); jQuery(“label[for=”page-core-home-1-hide”]”).hide(); jQuery(“label[for=”page-core-home-2-hide”]”).hide(); jQuery(“label[for=”page-core-home-3-hide”]”).hide(); } } jQuery(document).ready(function(){ check_for_using_template(jQuery(“#page_template”).val()); jQuery(“#page_template”).change(function(){ check_for_using_template(jQuery(“#page_template”).val()); }) }); Unfortunately, I was unable to successfully utilized the is_page_template, so I used jQuery. Works, though it may not … Read more
Ok. Found the guilty one: it’s White Label CMS. Activating only the Site Options did not working, when activated the Menus too, it’s working.
It is the theme author’s responsibility to give an admin interface that will allow the client to create the content in the form he wants. Layout related options and shortcodes are just a way for the author to justify doing a poor job in understanding the client’s needs and helping the client to easily manage … Read more
No paragraphs for a part of text in editor
Add the following to your themes functions.php file and it will default to the editors text view… add_filter( ‘wp_default_editor’, create_function(”, ‘return “html”;’) );
Editor have not permissions for a plugin
Custom shortcode editor [BackboneJS & TinyMCE)
It is possible to add line breaks using in the “Text” view like so: https://cloudup.com/cb5PCT2sWRP One thing to be aware of is that once you add the HTML for non-breaking spaces, you must remain in the “Text” view for future edits; switching back and forth to the visual editor will remove the above code.
Visual Editor not working for user on multiple computers