{"action":"closed","issue":{"url":"https://api.github.com/repos/copyblogger/genesis-connect-woocommerce/issues/26","repository_url":"https://api.github.com/repos/copyblogger/genesis-connect-woocommerce","labels_url":"https://api.github.com/repos/copyblogger/genesis-connect-woocommerce/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/copyblogger/genesis-connect-woocommerce/issues/26/comments","events_url":"https://api.github.com/repos/copyblogger/genesis-connect-woocommerce/issues/26/events","html_url":"https://github.com/copyblogger/genesis-connect-woocommerce/issues/26","id":313876157,"number":26,"title":"Can't use add_theme_support in theme to specify woo image sizes","user":{"login":"calliaweb","id":3100931,"avatar_url":"https://avatars1.githubusercontent.com/u/3100931?v=4","gravatar_id":"","url":"https://api.github.com/users/calliaweb","html_url":"https://github.com/calliaweb","followers_url":"https://api.github.com/users/calliaweb/followers","following_url":"https://api.github.com/users/calliaweb/following{/other_user}","gists_url":"https://api.github.com/users/calliaweb/gists{/gist_id}","starred_url":"https://api.github.com/users/calliaweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calliaweb/subscriptions","organizations_url":"https://api.github.com/users/calliaweb/orgs","repos_url":"https://api.github.com/users/calliaweb/repos","events_url":"https://api.github.com/users/calliaweb/events{/privacy}","received_events_url":"https://api.github.com/users/calliaweb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-12T20:29:21Z","updated_at":"2018-04-12T20:57:16Z","closed_at":"2018-04-12T20:57:16Z","author_association":"NONE","body":"According to https://docs.woocommerce.com/document/image-sizes-theme-developers/ I should be able to add the following to specify default image sizes in my theme for WooCommerce\r\n\r\n`add_theme_support( 'woocommerce', array(\r\n'thumbnail_image_width' => 200,\r\n'gallery_thumbnail_image_width' => 100,\r\n'single_image_width' => 500,\r\n) );`\r\n\r\nHowever with Genesis Connect WooCommerce it doesn't appear to work. With the above code it is expected that the option to change the image sizes is removed from the customiser but it is not. If I deactivate Genesis Connect WooCommerce then the changing image sizes from the customiser is removed (but I couldn't test further because other things then failed because I didn't have the plugin active).\r\n\r\nI *think* that the add_theme_support declaration in the plugin (without the image sizes) takes precedent over mine in my theme.\r\n\r\nI can't think of a solution other than to use the woocommerce_get_image_size_ filter to change the image sizes, which is not recommended.\r\n"}}
{"actor":{"display_login":"calliaweb"}}