-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
PhotoSwipe white skin #24543
Comments
This is the correct way to dequeue photoswipe styles, also you could replace the current one by your new skin, no even there's reason to change the ID, so will keep working just fine. |
The default skin is in the plugin folder, if I replace it with the white skin the changes will get wiped out on the next WooCommerce update. |
@akaleeroy why on your theme if you can just use |
I would like to post this solution here just in case anyone needs it. You can find the whole asset folder for photoswipe in: What I did was that I copied the whole directory to my theme just in case I need to replace anything else. Then I wrote a simple function to unregister and dequeue the css files mentioned above which looks like this
What we do here is this:
Now we actually forced woocommerce to load CSS (and all the files linked in these CSS files) from our theme. |
@smartynko, the snippet not work, PHP errors are displayed: |
Problem description
The default (dark) skin for Photoswipe doesn't fit the look of my store, but the white skin is excellent.
Solution
Let theme developers load another skin for Photoswipe instead of the default.
I don't know how modular it is, since de-queuing and de-registering
default-skin.css
seems to break the lightbox:The text was updated successfully, but these errors were encountered: