Undefined index: custom_sidebars
Sounds like $my_theme_option has no ‘custom_sidebars’ index, if you’ve remove it, it does not exist anymore. just add a if isset() around it, just like you did at around the for loop Also you don’t need to check for functions like register_sidebar to exist if they are older then 2 years. EDIT: DONT USE GLOBALS! … Read more