Missing Widget ID on Sidebar
-
I have a strange problem. After moving my WP to another paid server, The widgets on the shop sidebar don’t seem to have an ID attribute.
I have tried to update the theme, reinstall it, copy from the one that actually works but the problem persist.
I compare with the one I have on my local computer, the attr. ID is there, but why the one in the server is not.
I need the ID so it can work with one of the widget I use.
Even though I have managed to tweak the widget.php so the widget’s ID will show up. But I still don’t understand, why the problem occurs.
This is the part I tweaked
// Sidebars
register_sidebar(array(
‘name’ => __(‘Primary Sidebar’, ‘virtue’),
‘id’ => ‘sidebar-primary’,
‘before_widget’ => ‘<section class=”widget %1$s %2$s” id=”%1$s“><div class=”widget-inner”>’,
‘after_widget’ => ‘</div></section>’,
‘before_title’ => ‘<h3>’,
‘after_title’ => ‘</h3>’,
));
- The topic ‘Missing Widget ID on Sidebar’ is closed to new replies.