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

Add support to preview a theme with a selected style #15

Open
bobbingwide opened this issue Nov 1, 2022 · 0 comments
Open

Add support to preview a theme with a selected style #15

bobbingwide opened this issue Nov 1, 2022 · 0 comments

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Nov 1, 2022

Having added the Styles tab I now want to be able to support the preview function, that was developed in order to cache patterns, with the ability to select the style variant to be loaded.

As I wrote in https://blocks.wp-a2z.org/2022/11/01/styles-tab-for-themes/

On wordpress.org you can preview the style variations by clicking on a style variation displayed below the theme’s screenshot. Then you can preview the theme with that style. eg https://wp-themes.com/twentytwentytwo/?style_variation=pink

Requirement

  • Preview a theme with a given style variation

Proposed solution

  • oik-patterns will provide the logic to display the preview
  • oik-themes will provide the link / button for the user choose.

Note: in the absence of an oik-patterns solution, the preview could be done for WordPress themes by using wordpress.org's solution as is. eg open wordpress.org's theme preview in a new window.

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

No branches or pull requests

1 participant