Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widgets turn inactive after theme update #53

Open
rubenbrief opened this issue Jun 1, 2017 · 3 comments
Open

Widgets turn inactive after theme update #53

rubenbrief opened this issue Jun 1, 2017 · 3 comments

Comments

@rubenbrief
Copy link

Hi,

I've installed the theme_update_checker on my website. Everything's working except the widgets.

I'm using woosidebars to create multiple custom sidebars on my theme. Happens that when I update the theme for the last version, some of the widgets go to the inactive section.

Any hint on this? This happens to anyone else?
Thank you

@YahnisElsts
Copy link
Owner

Disclaimer: I'm not an expert on themes.

Did the theme name or the theme directory change after the update? That's one thing that could make widgets inactive.

@rubenbrief
Copy link
Author

yes changed. I thought that might be the problem. It looked like this:

original: example
after: example-ks~q3

Why are this happening?

@YahnisElsts
Copy link
Owner

In most cases, the reason that happens is that the update ZIP has the wrong directory structure. All theme files must be inside a directory. If you have multiple files or directories at the top of the ZIP file, WordPress will add a random suffix to the theme directory name.

Here's an example. Incorrect directory structure:

update.zip
    /includes
    style.css
    functions.php

Correct:

update.zip
    /theme-slug-here
        /includes
        style.css
        functions.php

If you're on a Mac, you need to be especially careful about this. By default, macOS displays archive contents in a misleading way. It makes it look like theme files are in a directory when they're actually not. In this case, I would recommend using third-party ZIP software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants