platinum 0 Report post Posted June 6, 2011 Hi, I am using Platform Pro. I would like to be able to add or remove (more importantly remove) the widgetized areas that are displayed in the "Dashboard > Appearance > Widgets" area. For example, I want only the 'primary sidebar' and the pagelines 'universal sidebar' to be displayed and all other sidebars to be hidden. How can I achieve this? Thanks, Luke Share this post Link to post Share on other sites
catrina 103 Report post Posted June 7, 2011 Do you mean that you want to remove them from the Widgets settings page on the Dashboard permanently or you want to remove them from your site? If it's the latter, you can disable the sidebars you want by going to Settings > Template Setup. Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
platinum 0 Report post Posted June 7, 2011 Hi Catrina, I mean that I want to remove them from the Widgets settings page on the Dashboard permanently. Similar to this modification to "functions.php" to remove default widgets... add_action( 'widgets_init', 'remove_default_widgets' ); function remove_default_widgets() { unregister_widget('WP_Widget_Pages'); unregister_widget('WP_Widget_Calendar'); unregister_widget('WP_Widget_Archives'); unregister_widget('WP_Widget_Links'); unregister_widget('WP_Widget_Meta'); //unregister_widget('WP_Widget_Search'); //unregister_widget('WP_Widget_Text'); unregister_widget('WP_Widget_Categories'); unregister_widget('WP_Widget_Recent_Posts'); unregister_widget('WP_Widget_Recent_Comments'); unregister_widget('WP_Widget_RSS'); unregister_widget('WP_Widget_Tag_Cloud'); unregister_widget('WP_Nav_Menu_Widget'); } But in this instance I want to remove the sidebar options available. Share this post Link to post Share on other sites
cmunns 16 Report post Posted June 7, 2011 http://codex.wordpress.org/Function_Reference/unregister_sidebar Share this post Link to post Share on other sites
platinum 0 Report post Posted June 8, 2011 Hi Adam, I'm really new to php but keen to learn more. I understand that have to add the following code to my "child theme" functions.php file... add_action( 'widgets_init', 'remove_some_widgets', 11 ); function remove_some_widgets(){ unregister_sidebar( 'first-footer-widget-area' ); } And for each line of this line unregister_sidebar( 'first-footer-widget-area' ); I need to be replace the first-footer-widget-area with the name of the pagelines sidebar. What are the names of the pagelines sidebars? And where should I have looked to find the name of the pageline sidebars? Can you find the names of things like this using Firebug? If so, can you let me know how? Thanks, Luke Share this post Link to post Share on other sites
cmunns 16 Report post Posted June 8, 2011 I believe you can just use sidebar-1, sidebar-2, etc in the order that they show up. Share this post Link to post Share on other sites
platinum 0 Report post Posted June 9, 2011 Hi Adam, Thanks, that worked. Is there something that I could have done to figure this out myself that it was 'sidebar-1, sidebar-2, etc' ? I am asking because your answer may help me to solve more issues like this in the future more easily. Cheers, Luke Share this post Link to post Share on other sites
timlinson 3 Report post Posted June 9, 2011 You asked earlier about firebug.. basically just right click the sidebar in question, click "inspect element," and it'll take you to the general vicinity of the sidebar code for that page. You should be able to see the IDs and classes. Share this post Link to post Share on other sites
platinum 0 Report post Posted June 9, 2011 Hi Tim, Thanks, I was having a look around in firebug but am new to that too, and didn't understand how, or if, firebug related to php, but Ive just had another look and I see the ID and classes that Adam refered to above. That's a big help and with Adams reference above to wordpress codex I should be able to figure a few more things out now more easily. Thank you all. Luke Share this post Link to post Share on other sites