Não entendo se é assim que deveria funcionar (mas parece estranho) ou se simplesmente não está funcionando bem.
Se tenho um tema desativado e que não é um componente de outros temas ativos, o botão de pré-visualização não funciona; ou melhor, funciona, mas abre o site como sempre, sem me permitir ver a pré-visualização daquela folha de estilo.
Também tentei com folhas de estilo usadas como componentes de outros temas (ativos), mas o resultado é o mesmo.
Depois, se eu for até a folha de estilo e clicar em „Pré-visualizar“ sem editar nada, exatamente como descrito anteriormente, o site é carregado normalmente, sem mostrar apenas a pré-visualização.
Na prática, o botão de pré-visualização não serve para nada no momento.
A pré-visualização só funciona se eu alterar algo, clicar em salvar e, em seguida, no botão de pré-visualização.
Então, gostaria de saber: como você compartilha a pré-visualização com outras pessoas?
Frequentemente me vejo na situação de ter que mostrar um trabalho em andamento para decidir com minha equipe como prosseguir.
Primeiro, compartilhei o link de pré-visualização com eles, mas agora que o link de pré-visualização não está mais disponível, tenho que fazer muitas capturas de tela e, muitas vezes, elas não são suficientes para explicar as alterações feitas, pois eles não conseguem vê-las em „ação".
I installed and customised a theme last night and it was going well. When I hit PREVIEW it displayed the theme as I expected. But, this morning when I tried to preview it again, suddenly the unchanged CSS wasn’t being previewed at all. I couldn’t understand why it stopped working.
After reading your post above, I tried adding a blank space anywhere in the theme’s CSS, then clicked SAVE. And BOOM, suddenly the preview button works again, just like you said above.
This is a bug. And as you mentioned, it makes it harder to show the theme to others, without explaining the need to do a pointless save first.
I just ran into this as well. It makes it hard to test and build a theme behind the scenes. This should probably be fixed since it is not working as expected by the user.
It would also be nice to be able to make themes available to either Mods or Admins in addition to users. Let’s say we are working on a special Holiday Theme and do not want to show it or make it available right away.
I am having trouble reproducing this, is the problem theme on your site? I tried to repro the issue in dev and was unable to get this cache poisoning problem.
Right now if I go to a specific theme that is not selectable by users (ex /admin/customize/themes/47) and click on “Preview” the preview does not change the theme. If I then go in change anything (ex Color Scheme or theme name etc…) then it will Preview properly.
Just testing it again right now and it is happening to me.