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

It does not work in the media library module on the front side! #76

Open
tnyligokhan opened this issue Jul 24, 2024 · 1 comment
Open

Comments

@tnyligokhan
Copy link

tnyligokhan commented Jul 24, 2024

Hello,
In one of our projects, we added a feature for the user to access the media library while uploading images on the front side. But when we click on the “Instant Image” tab in the tabs, it does not switch. How can I solve this?

Video recording showing the problem!
I hope you can see what I mean from the video!

@alican532
Copy link

Hello,

We are using the Instant Images plugin on the frontend of our website and have encountered some issues:

Content Not Loading When Switching Between Tabs:

  • When using the plugin on the frontend, the Instant Images tab in the media modal initially loads correctly, and the content appears as expected.
  • However, when switching to other tabs (e.g., Media Library) and then returning to the Instant Images tab, the content does not load, and the tab does not function properly.

Instant Images Tab Not Loading When the WordPress Library Is Selected by Default:

  • We have custom code that sets the WordPress Media Library tab as the default on the initial modal load.
  • When this code is active, the Instant Images tab fails to load entirely, and we cannot access it.

Our Goal:
We aim to use the plugin seamlessly on the frontend, providing an effortless media upload experience for our visitors. We would greatly appreciate your assistance and recommendations in resolving these issues.

Our Questions:

  1. How can we resolve these issues while using the plugin on the frontend?
  2. How can we ensure that the content of the Instant Images tab loads correctly when switching between tabs?
  3. What can we do to make the Instant Images tab work even when the WordPress Media Library is set as the default tab?

Additional Information:

  • Our custom code ensures that the WordPress Media Library tab is selected by default on the initial modal load.
  • We have included the necessary scripts and styles for the plugin to work on the frontend and have called the wp_enqueue_media() function.

Thank you in advance for your assistance and attention to this matter. We look forward to hearing your suggestions.

Best regards,
Alican Gürdağ

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