Support » Themes and Templates » First widget in Appearance > Widgets missing

  • Resolved jbayton

    (@jbayton)


    Hello folks,

    I’ve just noticed today when setting up some new widgets on my own written theme, the first (top) widget in the left-hand area has vanished, see pic:

    https://www.dropbox.com/s/7ww8a0ve82jdftm/sidebar-ad.png?dl=0

    This is in Appearance > Widgets

    I expected to see “Sidebar Ad” there above “Sidebar Search”, instead it’s just a grey line.

    If I open the customiser it’s there and fine.

    I’ve done a bit of debugging in Chrome and don’t see any errors or any code on display that intentionally makes it disappear. My functions.php is pretty standard too:

    if (function_exists(‘register_sidebar’)) {
    register_sidebar(array(
    ‘name’ => ‘Sidebar Ad’,
    ‘id’ => ‘sidebar-ad’,
    ‘description’ => ‘Widget Area’,
    ‘before_widget’ => ‘<div id=”one” class=”two plus-centre”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<div class=”sidebar-widget-title”><h2>’,
    ‘after_title’ => ‘</h2></div>’
    ));
    }

    if (function_exists(‘register_sidebar’)) {
    register_sidebar(array(
    ‘name’ => ‘Sidebar Sponsor’,
    ‘id’ => ‘sidebar-sponsor’,
    ‘description’ => ‘Widget Area’,
    ‘before_widget’ => ‘<div id=”one” class=”two plus-centre”>’,
    ‘after_widget’ => ‘</div>’,
    ‘before_title’ => ‘<div class=”sidebar-widget-title”><h2>’,
    ‘after_title’ => ‘</h2></div>’
    ));
    }

    (This *7 as I copy pasted it)

    Has anyone seen this before? Any advice?
    Let me know if you need any more information.

    Thanks,
    Jason

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘First widget in Appearance > Widgets missing’ is closed to new replies.