Forums

[Plugin: WP News Slider] Remove blank <h2> Widget Title (3 posts)

  1. gx2000
    Member
    Posted 2 years ago #

    I want to remove the blank <h2> tag that this widget generates. I have inserted my own to control the Title of the widget, but can't find where it is adding. I have 'ok' skills in PHP and can normally tweak widgets, but this has me flummoxed.

    http://wordpress.org/extend/plugins/wp-news-slider/

  2. RaidX
    Member
    Posted 1 year ago #

    Look for

    echo $before_widget;
     echo $before_title;?>
     <?php echo $after_title;
     echo wpnewsslider_getwidget();
     echo $after_widget;

    Replace with

    echo $before_widget;
      echo $before_title;
    ?>
    <span id="newssection">News box</span>
    
    <?php
      echo $after_title;
      echo wpnewsslider_getwidget();
      echo $after_widget;

    that how i fix Title problem

    The h2 tag will now have a title in between it.

    Think the plug-in has not been updated in ages otherwise this simple problem should have been fixed, I am no expert in plug-in's or PHP far from it but even I found problem within 5 minutes and fixed it as above.

    I use this on my website and it works great with no problems at all.

  3. nabilkairi
    Member
    Posted 1 year ago #

    Hello
    how to change the language in the Plugin: WP News Slider

Topic Closed

This topic has been closed to new replies.

About this Topic