Viewing 6 replies - 31 through 36 (of 36 total)
  • Thread Starter Okoth1

    (@okoth1)

    Clear. Thank you for all your time Héctor. Got it back on the local site. Now the puzzle starts ??

    Cheers

    Thread Starter Okoth1

    (@okoth1)

    Hi Héctor, another update. In Widget.php around line 146, when I replace this

    // Has user set a title?
            if ( '' != $instance['title'] ) {
                if ( ! $instance['markup']['custom_html'] ) {
                    $instance['markup']['title-start'] = $before_title;
                    $instance['markup']['title-end'] = $after_title;
                }
            }

    with this (from 5.3.3)

    // Has user set a title?
            if ( '' != $instance['title'] ) {
                $title = apply_filters('widget_title', $instance['title'], $instance, $this->id_base);
    
                if (
                    $instance['markup']['custom_html']
                    && $instance['markup']['title-start'] != ""
                    && $instance['markup']['title-end'] != ""
                ) {
                    echo htmlspecialchars_decode($instance['markup']['title-start'], ENT_QUOTES) . $title . htmlspecialchars_decode($instance['markup']['title-end'], ENT_QUOTES);
                } else {
                    echo $before_title . $title . $after_title;
                }
            }

    the widget title comes back.

    Hope this helps

    Cheers

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @okoth1,

    Could you please try this version and let me know if it fixes the missing widget title issue for you?

    P.S.: Do not uninstall the plugin or else you’ll lose your popular posts data. Instead replace the plugin files with the ones from the zip file.

    Edit: I updated the zip file a few minutes ago reverting back the changes that were related to the heading which should fix the issue but please test anyways and let me know your results.

    • This reply was modified 3 years, 8 months ago by Hector Cabrera. Reason: Added note about code changes
    Thread Starter Okoth1

    (@okoth1)

    Sorry Héctor, WordPress didn’t send me a notification of your reply. I’ll try to look into it soon.

    Thanks

    Thread Starter Okoth1

    (@okoth1)

    Hi Héctor,

    First I updated the plugin straight to 5.3.5 but the titles weren’t there. Then I replaced the files with your patched version and the titles are there. So, for me the patch worked. Thanks for that.

    Looking forward to the implementation in the new update ??

    Plugin Author Hector Cabrera

    (@hcabrera)

    Excellent, thanks for reporting back.

    I’ll do some more testing just to be sure and release version 5.3.6 soon ??

Viewing 6 replies - 31 through 36 (of 36 total)
  • The topic ‘Title and markup not showing’ is closed to new replies.