How to Remove an Unordered List From a Widget in WordPress

104 14
    • 1). Log in to WordPress from the "wp-admin" directory and go to "Appearance" from the Dashboard sidebar. Click "Editor" to load the Edit Themes screen.

    • 2). Load the "functions.php" file from within the "Edit Themes" screen by clicking its link listed under "Templates."

    • 3). Remove the "<li>" and "</li>" tags from the sidebar registration code. Leave the quotation marks that surrounded these tags alone:

      if(function_exists('register_sidebar')) {

      register_sidebar(

      array(

      'name' => 'My Sidebar',

      'before_widget' => '',

      'after_widget' => '',

      'before_title' => '<h3>',

      'after_title' => '</h3>',

      ));

      }

      Make these changes to every sidebar registered in "functions.php" and click the "Update File" button to save each file.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.