heinyken
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Edit pages blank due to theme errorI don’t know what other documentation to provide to make this easier – I’m not familiar with the errors I’m getting or how to debug them, unfortunately.
Forum: Plugins
In reply to: Text widget data not being retrieved upon EditThank you very much, Mark, you put me on the right path. That half-worked, and through process of elimination, got to the bottom of it all: apparently the API for naming an ID requires that it’s a string and that it starts with a letter. So you were right: naming it that helped, however we had to put it inside double quotes for it to work.
It now looks like this:if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'testimonials', 'id' => "sidebar-1", 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h4>', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'Customers Hunting', 'id' => "sidebar-2", 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h4>', 'after_title' => '</h4>', ));And works like a charm. So it seems the answer is to have it inside double quotes and to start with a letter.
Thanks a lot Mark, this was scary and VERY annoying, haha, I’m glad to have it worked out. Sure hope it helps someone else in the future.