Custom Sidebar options disappear after update

Hi guys,

after i updated to the latest version of cornerstone (3.5.5) and the X theme, i cannot see the custom sidebars options anymore. The places where the sidebars should appear are now empty as if there never was defined.

If i rollback to previous versions, the sidebars appears again.

What can i do?

Thanks.

Hello Roberto,

This usually happens when you only update X and leave Cornerstone in the previous version which causes an incompatibility issue.

Please make sure that when you update X, you also update Cornerstone to the latest version.

Hope this helps.

Hi Jade,

I double checked the versione of Cornerstone and the theme and i can assure you that is the latest one. Here are some screenshots:

I checked in cornerstone code and there’s a file called “custom-sidebars.php” under “cornerstone/includes/extend/” that should contain the code relative to the custom sidebars but for some reasons it don’t execute.

Let me know if you need more info.

Hi @inrisalto,

Did you edit that template file directly in parent theme? If yes, your custom codes has gone from the updates.

Please make sure all the custom codes should be placed under functions.php file locates in your child theme?

Can you also please provide us with your custom code for the sidebars, website URL, admin account and password?

Thank you.

Hi Thai,

i did not edited any of the cornerstone code and i’ve already a child theme that i use for customization.

I’ve created an account for you and sent you a private message.

Let me know what’s wrong.

Hi Roberto,

From which version you have updated your site?

I checked and the sidebars are displayed in the forum, I’m not sure which custom sidebar is missing. But if you’re referring to the sidebar in Appearance > Sidebars then yes, it’s missing. And the reason for that is you’re changing the theme folder name. Example, its folder name is /wp-content/themes/inrisalto/ which supposed to be /wp-content/themes/x/. To confirm this, I uploaded the latest version of the theme with the correct folder name and Appearance > Sidebars starts displaying.

I activated back the child theme, but please use the correct theme folder name. The theme that I uploaded is still there, you just need to connect it to your child theme by renaming the template name back to X.

Like

/*

Theme Name: In Risalto - Child
Theme URI: http://inrisalto.it/
Author: In Risalto
Author URI: http://inrisalto.it/
Description: Tema child In Risalto
Version: 1.0.0
Template: inrisalto

*/

to this

/*

Theme Name: In Risalto - Child
Theme URI: http://inrisalto.it/
Author: In Risalto
Author URI: http://inrisalto.it/
Description: Tema child In Risalto
Version: 1.0.0
Template: x

*/

Thanks!

Thanks Rad,

I followed your instructions and now I can see the options correctly.
There is another problem that maybe you can help me with. If now i go to the blog page and tries to search a string (Ex. “as”) all the results are the same :frowning:

Can you check please?
Thanks again.

Hey Roberto,

That is regretfully a known bug in the latest version of X. Please add this code in your child theme’s functions.php for now.

add_filter('cornerstone_enable_search', '__return_false');

Hope that helps.

Hi Christian,

all works perfectly now :smiley:

Thanks very much!

Glad we were able to help :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.