WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Front-end Editor] Problem with text widgets (24 posts)

  1. scribu
    Member
    Posted 4 years ago #

    ashaman wrote:

    Hello and happy new year!
    The recent upgrade disabled the Text & Html widget editing for me.
    Up until yesterday everything worked fine.
    Any ideas on what I could check?

  2. scribu
    Member
    Posted 4 years ago #

    So you're not able to edit text widgets using Front-end Editor 1.6?

    Can you give me the URL of your site?

  3. ashaman
    Member
    Posted 4 years ago #

    I'd rather not give out the link publicly, call me paranoid...

    I verified that with the previously installed version it works as fine as ever; pulled it out of a recent backup.
    Installing the 1.6 has definately caused the error as far as I can figure out.

  4. scribu
    Member
    Posted 4 years ago #

    Well, I can't help you unless I have more information.

    You'll just have to use the older version of the plugin.

  5. ashaman
    Member
    Posted 4 years ago #

    What else would you like to know apart from WP version [2.9]?

  6. scribu
    Member
    Posted 4 years ago #

    Can you paste the code used to register the sidebar? It's usually located in functions.php in your theme's folder and looks something like this:

    if ( function_exists('register_sidebar') ) {
    	register_sidebar(array(
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h2 class="widgettitle">',
    		'after_title' => '</h2>',
    	));
    }
  7. ashaman
    Member
    Posted 4 years ago #

    if ( function_exists('register_sidebar') )
        register_sidebar(array(
    	'name'=>'sidebar_full',
            'before_widget' => '<li id="%1$s" class="sidebaritem %2$s"><div class="sidebarbox">',
            'after_widget' => '</div></li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));
        register_sidebar(array(
    	'name'=>'sidebar_left',
            'before_widget' => '<li id="%1$s" class="sidebaritem %2$s"><div class="sidebarbox">',
            'after_widget' => '</div></li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));
        register_sidebar(array(
    	'name'=>'sidebar_right',
            'before_widget' => '<li id="%1$s" class="sidebaritem %2$s"><div class="sidebarbox">',
            'after_widget' => '</div></li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));
        register_sidebar(array(
    	'name'=>'footer_left',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h3>',
            'after_title' => '</h3>',
        ));
        register_sidebar(array(
    	'name'=>'footer_middle',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h3>',
            'after_title' => '</h3>',
        ));
        register_sidebar(array(
    	'name'=>'footer_right',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h3>',
            'after_title' => '</h3>',
        ));

    Only the sidebar_full is in use though.

  8. scribu
    Member
    Posted 4 years ago #

    Ah... now I see the problem:

    'before_widget' => '<li id="%1$s" class="sidebaritem %2$s"><div

    The plugin searches for the 'widget' class, but you have 'sidebaritem' instead.

    Try changing that line to this:

    'before_widget' => '<li id="%1$s" class="widget sidebaritem %2$s"><div

  9. ashaman
    Member
    Posted 4 years ago #

    Thank you ver much scribu, it works now. :)

    On a sidenote, does having two classes, or rather a different classname, interact in any other way with the blog/theme?
    Just curious, is all...

  10. scribu
    Member
    Posted 4 years ago #

    The widgets might get some extra styles applied to them from the extra class, but besides that, no.

  11. tomagladiator
    Member
    Posted 4 years ago #

    Hello and happy new years :)

    I've just updated Front-end editor and I've the same problem.
    It's impossible now to change text widget.

    I changed class to "widget sidebaritem %2$s" in my function.php page but no results.

    Thanks to help me :)

  12. tomagladiator
    Member
    Posted 4 years ago #

    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<li id="%1$s" class="widget sidebaritem %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));
  13. scribu
    Member
    Posted 4 years ago #

    tomagladiator, what version of WP are you running?

    Can you spare the site URL, or are you paranoid too? :)

  14. tomagladiator
    Member
    Posted 4 years ago #

    http://www.centredepechecr.ca/
    But I'm paranoid too ^^

    I use actually WordPress 2.8.4

  15. tomagladiator
    Member
    Posted 4 years ago #

    Thanks you Scribu :) I appreciate your help

  16. scribu
    Member
    Posted 4 years ago #

    The markup looks alright. It should be working.

    Btw, wouldn't a single text widget be easier to work with, instead of having 10?

  17. tomagladiator
    Member
    Posted 4 years ago #

    :(
    No, because its a "fisherman" (he don't known nothing about web) would be change them and if I use juste one, I need to insert some balise like </br><p> And my client could be delete them by mistake :/

    Yeah, the markup works but when I double-click ... nothing.

    I've persuaded the fisherman to use Google Chrome OH YEAH!
    So if I install-back the version 1.5 it's will be great.

    Where can I download this old version please ?

    Thanks you and sorry for my english again :/

  18. scribu
    Member
    Posted 4 years ago #

    On the plugin page, just below the download button, you'll see an "Other Versions" link.

  19. tomagladiator
    Member
    Posted 4 years ago #

    Merci beaucoup Scribu
    That's work now :)

    Bonne journée

  20. ashaman
    Member
    Posted 4 years ago #

    Hi again!
    I've run into a new problem:
    It seems that the front-end editor is messing with the html code in my text widget.

    For example, editing the widget and pressing apply (with or without changes being made), produces this for links:

    <a href=\"url\">

    The \ inserted appear only after editing with f-e.e., changing the text through the dashboard works fine.

    Scribu to the rescue? :P

  21. scribu
    Member
    Posted 4 years ago #

    The issue with backslashes should be fixed in version 1.6.1. ;-)

  22. ashaman
    Member
    Posted 4 years ago #

    Indeed! Cheers for the quick update! :)

  23. ashaman
    Member
    Posted 4 years ago #

    I've run into yet another issue:
    Editing a text-widget opens up a veeery small textbox to show the text, around 2 lines. It's quite hard to edit using that, plus this was introduced with the recent updates; it wasn't like this before.
    Actually, trying that again for another time, a quite large textbox appeared, but with no slider to scroll to the bottom. :/

  24. scribu
    Member
    Posted 4 years ago #

    It's caused by the autogrow script. It was buggy from the beginning.

    It will be removed in the next version of the plugin.

    Update: You can try the latest dev version (1.7a).

Topic Closed

This topic has been closed to new replies.

About this Topic