The errors are the result of the coders of Enfold not understanding basic WordPress practices for registering sidebar widgets, including assigning a unique ID value for each widget area. The Pastebin files were a start at fixing this by assigning IDs to the widget areas. However, the problem with the Pastebin fix is that it used the ID of “sidebar-1”, “sidebar-2”, etc., AGAIN for the footer widget areas. This is why the footer widgets show and not the default sidebars. The footer widget areas are assigned last using the same IDs as the default sidebar areas, so they are the ones that show.
The fix is to change this line for the footer IDs:
'id' => 'sidebar-'.$i,
to
'id' => 'footer-widget-'.$i,
However, that is MY fix, and may not be what the Kriesi team decides to do as the final fix. My fix simply allows the footer widgets to have their own ID that is not a duplicate of the default sidebar ids. They will need to do something similar.
And, yes, turning off debug will hide the errors, so maybe that’s the best way to handle this for now.
Hi Yigit,
I updated the parent theme to the latest version, and now the function is working!!!! Yay!
Thanks!
Angela