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

Theme not supported, but using BB Theme child-theme #23

Open
jfarsen opened this issue Feb 14, 2017 · 8 comments
Open

Theme not supported, but using BB Theme child-theme #23

jfarsen opened this issue Feb 14, 2017 · 8 comments

Comments

@jfarsen
Copy link

jfarsen commented Feb 14, 2017

Hi,

This looks great, but I get the error that our theme isn't supported.

We're using the BB Agency plugin and BB Theme but a child theme. The difference might be that we're running WP multisite, and we've network enabled the Child Theme, but not the BB theme (as we don't want sub-sites to be able to choose the BB theme, only the child (hence not activated).

Would it be possible to detect if we're using a child theme?

@jfarsen
Copy link
Author

jfarsen commented Feb 14, 2017

In a related note, the plugin works perfectly, that I can tell.

So it's only that error msg that gets triggered, but no ill effect.

@Nikschavan
Copy link
Collaborator

Can you tell me what is the folder name of you theme?

Have you modified the bb theme somehow?

@jfarsen
Copy link
Author

jfarsen commented Feb 15, 2017

Sure. The parent theme's folder name is unchanged, at /themes/bb-theme/. The child-theme's folder name is /themes/bb-csynchro/

I've done zero changes to the BB parent theme. We never do that.

@Nikschavan
Copy link
Collaborator

Ok This should not be happening, The plugin checks for the theme/parent theme template using get_template() function, in case of using a child theme it correctly returns the slug of parent theme.

Can you add this bit of code to your child theme's functions.php

function child_theme_get_template() {
	var_dump( get_template() );

	return '';
}

add_action( 'update_footer', 'child_theme_get_template', 99 );

This will print the template name in the admin footer area like this, Can you copy and paste that info here?

After you copy that remove this above code from your child theme.

@jfarsen
Copy link
Author

jfarsen commented Feb 16, 2017

Sure thing, the result is this : string(8) "bb-theme" :(

@Nikschavan
Copy link
Collaborator

What is the exact error message? Can you give a screenshot of the notice?

@jfarsen
Copy link
Author

jfarsen commented Feb 16, 2017

Hey, I think I have another clue ... since it's a Multisite, on the "micro-sites" that use the bb-child, it's fine. But on the main site (landing page), which uses a different theme, the error message appears, since it's using a different theme.
screen shot 2017-02-16 at 16 05 56

@Nikschavan
Copy link
Collaborator

Ha! That explains it, I will make this notice dismissable so that this can be removed in such cases.

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