[theme-reviewers] Theme preview on wordpress.org

Otto otto at ottodestruct.com
Fri Nov 8 16:01:46 UTC 2013

This is a problem with your theme itself.  Examine this code:

function fruitful_get_responsive_style () {
  $theme_options  = fruitful_ret_options("fruitful_theme_options");
  if (isset($theme_options['responsive'])) {
    if ($theme_options['responsive'] == 'on') {
      wp_enqueue_style('main-style',  get_stylesheet_uri());
    } else {
      wp_enqueue_style('main-style',  get_stylesheet_directory_uri()
add_action('wp_enqueue_scripts', 'fruitful_get_responsive_style', 20);

If the "fruitful_theme_options" isn't set, then you don't enqueue any
style.css file. And the fruitful_theme_options setting is not going to
be set on a default installation. Nor will it be set in the previewer.
Nor will the previewer even have the ability for that to be set.

You need to code your theme to use defaults correctly. A "default" is
what you get when there are no options set in the database at all.


On Fri, Nov 8, 2013 at 8:18 AM, Fruitfulcode <fruitfulcode at gmail.com> wrote:
> Hello everyone
> Yesterday our new theme version 1.0.7 changed status "live"
> http://wordpress.org/themes/fruitful
> In Preview, theme display without css styles http://wp-themes.com/fruitful/
> In latest version we removed some functionality and maybe easy way to fix
> this problem it's reset theme to default settings.
> In Appearance > Theme options > General settings > Reset all options to
> default.
> I don't have access to website preview on wordpress.org
> If someone can help?
> Thanks
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers

More information about the theme-reviewers mailing list