feedmeastraycat
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Editor Widget] Edit content does not load the widget@tderouindesign No worries. ?? Soon we’ll be on full page editing and Gutenberg blocks in widgets so I just don’t find it worth enough to keep this little plugin up to date. Its nice to hear from people who have used it though. Sorry it have caused you issues now though! Black Studio is a good switch.
Forum: Plugins
In reply to: [WP Editor Widget] Edit content does not load the widget@tderouindesign Hello!
WordPress have a built in text widget that allows for rich text and because of that I no longer really do any updates here.
So I think that is the most simple solution. To change them to the built in widget!
Ah. Ok. I thought it saved the rules as they are when accepting. ??
Cool. ?? Thanks.
Forum: Plugins
In reply to: [WP Editor Widget] plugin_action_links handler trashes links array@jayce53 Hello. I think you are writing in the support forum for the wrong plugin. I think you are looking for WP Editor, my plugin is called WP Editor Widget.
- This reply was modified 5 years, 5 months ago by feedmeastraycat.
Forum: Plugins
In reply to: [WP Editor Widget] Multilingual Rich text widget not showing on my websiteHello!
Sorry for the late reply.
I have a site (still in dev, not public) that uses WPML, latest version of WP and the WP Editor Widget plugin. And it works.
Have you tried switching to a default theme just to make sure it is not something with the theme?
Regards,
DavidForum: Plugins
In reply to: [WP Editor Widget] WPML compatible@gofigure Hello. I know this is kinda late. There is a development version available with WPML support. Would you like to test it for me?
Download the master branch here:
https://github.com/feedmeastraycat/wp-editor-widgetLet me know if you get the time to test. ??
Forum: Plugins
In reply to: [WP Editor Widget] two steps to edit widget content, need to resize editorI think this is this issue:
https://github.com/feedmeastraycat/wp-editor-widget/issues/3Which I just havent been able to find a fix for. :-/
Forum: Plugins
In reply to: [WP Editor Widget] No ‘widget-content’ div when excluding title outputThere is no filter to output the checkbox in admin.
But there is an action before the data is saved:
https://github.com/feedmeastraycat/wp-editor-widget/blob/v0.5.5/classes/class-widget.php#L123And there is a filter on the data being saved:
https://github.com/feedmeastraycat/wp-editor-widget/blob/v0.5.5/classes/class-widget.php#L125So you could use either to overwrite the data so title option always will be checked regardless of what the user chooses.
I would suggest also use this filter to make sure title output option is turned on regardless of what is saved as well:
https://github.com/feedmeastraycat/wp-editor-widget/blob/v0.5.5/classes/class-widget.php#L48However. If a user does not add a title you will obviously get an empty title tag. So it will be, for example,
<h2></h2><div class="widget-content">
.Forum: Plugins
In reply to: [WP Editor Widget] No ‘widget-content’ div when excluding title outputYeah thats a tricky one. Unfortunately I dont really have a good idea right now on how you could solve that.
You could look up those specific widgets and try to alter them if they have filters.
Or you could add the HTML you want in the register_sidebar() function and move it for WP Editor Widget using its filter.
However, having
<div class="widget-content">
inafter_title
means it will only be printed if title is used. And since you have</div>
inafter_widget
it will always be printed. Meaning you might end up with a</div>
without its opening<div>
and you might get really weird HTML errors.Forum: Plugins
In reply to: [WP Editor Widget] No ‘widget-content’ div when excluding title outputGreat to hear! ??
Forum: Plugins
In reply to: [WP Editor Widget] No ‘widget-content’ div when excluding title outputSorry for not getting back to you earlier. Been a couple of crazy weeks here for me.
The function that outputs the widget you can see on github here:
https://github.com/feedmeastraycat/wp-editor-widget/blob/v0.5.5/classes/class-widget.php#L43It is pretty much a standard widget setup.
It outputs $before_widget always.
It outputs $before_title and $after_title only if there is a title.
It outputs $content.
It outputs $after_widget.The variables $before_widget, $before_title, $after_title and $after_widget is populated from how you register your sidebars with register_sidebar().
You have three filters to play around with:
– wp_editor_widget_title
– wp_editor_widget_output_title
– wp_editor_widget_contentSo I guess you could do something like this … maybe? (Just thinking out loud here).
function my_wp_editor_widget_content_filter( $content ) { return '<div class="widget-content">' . $content . '</div>'; } add_filter( 'wp_editor_widget_content', 'my_wp_editor_widget_content_filter', 10, 1 );
It should add a filter which would wrap the content of the widget in a <div class=”widget-content”> regardless if title is used or not.
Then remove this div from your register_sidebar() so it only registers the <aside> and the <h2>.
Forum: Plugins
In reply to: [WP Editor Widget] No ‘widget-content’ div when excluding title outputIt doesnt output the widget at all?
I did a test now on WP 4.6.1 and Twenty Fourteen. I created two WP Editor Widgets, added “Title 1” and “Content 1” on the first and “Title 2” and “Content 2” on the second one and unmarked the checkbox to output the title on the second one. And this is the result HTML:
<div id="primary-sidebar" class="primary-sidebar widget-area" role="complementary"> <aside id="wp_editor_widget-7" class="widget WP_Editor_Widget"> <h1 class="widget-title">Titel 1</h1> <p>Content 1</p> </aside> <aside id="wp_editor_widget-8" class="widget WP_Editor_Widget"> <p>Content 2</p> </aside> </div>
So to me it looks correct, no? Or am I just misunderstanding something?
/D
Thanks. And yeah. Thats kinda my general idea. ?? I have to maintain the functionality it has. I just dont have the time to do much more with it. I have some people who’ve asked different things (like WPML support). But until I myself have to use those specific things in a project I just dont have the time.
/D
Hello Annie,
Unfortunately I dont really have that much time to continue developing it. But at the same time I still use it and I find that it does what I want it to do. ??
So if you need more features you might want to look for other plugins.
Black Stydio Tuny MCE Widget might do more, have a larger user base and might be updated more often:
https://sv.www.ads-software.com/plugins/black-studio-tinymce-widget/I always test it in the latest versions of WP. I just havent had the time to update the readme in a while. (I will ASAP). But the plugin as it is now works for what it is designed to do.
Regards,
David