• Resolved vinuel

    (@vinuel)


    There seems to be a bug: If I fill in a title, the widget would write ‘”>’ before the titel in the frontend.

    “>Title

    If i add a class in the second class fiel (‘Add Classes. Separate multiple classes by a space (no commas!)’)it looks like this:

    my_additional_class”>Titel

    Ccan this be fixed?

    Best, Viktor

    https://wordpress.org/plugins/text-widget-with-class/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author disinfor

    (@disinfor)

    Hey Viktor,

    Sorry for the late reply, I didn’t get notification that you had a problem.

    What theme are you using?

    Thanks

    Thread Starter vinuel

    (@vinuel)

    Hello, thanks for your reply. We use a kind of own framework (based on the Reverie 3 framework) with own widgets and own functions.php.

    For me it looks like somethng is wrong with the code of the widget.

    Best, V

    Plugin Author disinfor

    (@disinfor)

    Hey Vinuel,

    I just did an update to the plugin that will hopefully solve your issue. I’m guessing in your register_sidebar call in your functions.php, there wasn’t any content in the $before_title variable. Now the plugin will see there is no content and add default header tags with custom classes.

    Thanks

    Thread Starter vinuel

    (@vinuel)

    Hey disinfor,
    thanks for the change, but it doesnt seem to work … still got the same problem. The register_sidebar looks like normal:

    $sidebars = array('Sidebar');
    foreach ($sidebars as $sidebar) {
        register_sidebar(array('name'=> $sidebar,
        	'id' => str_replace(' ','_', strtolower($sidebar)),
            'before_widget' => '<article id="%1$s" class="panel widget %2$s">',
            'after_widget' => '</article>',
            'before_title' => '<h4>',
            'after_title' => '</h4>'
        ));

    Here is an image that shows what I get:
    http://www.lieberungewoehnlich.de/twwc-widget.png
    Maybe this helps…

    Best, V

    Plugin Author disinfor

    (@disinfor)

    Ah! I see what’s happening. I’ll write a fix for that.

    Thanks!

    Plugin Author disinfor

    (@disinfor)

    Hey Vinuel,

    The new version should work for you now.

    Thanks!

    Thread Starter vinuel

    (@vinuel)

    Perfect, it is fixed!

    Thanks & best!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Bug with the titel’ is closed to new replies.