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

ResponsivePics without an ID #21

Closed
alexkerber opened this issue Jan 12, 2022 · 2 comments
Closed

ResponsivePics without an ID #21

alexkerber opened this issue Jan 12, 2022 · 2 comments

Comments

@alexkerber
Copy link

Is it possible to load a static image from your assets folder and not from your media lib? Like @asset('images/default-thumb.jpg') or so?

@Twansparant
Copy link
Contributor

Hi @alexkerber, no I'm afraid not. This plugin is meant for assets within the WP media library and therefore an attachment ID is required. There are loads of tools available though for resizing/cropping local assets in your compiling flow, depending on which tool you use for that.

@alexkerber
Copy link
Author

I was afraid of that ... amazing work btw! I will just build a similar component for static files

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

No branches or pull requests

2 participants