AudioPlayer button not visible
-
Font-awesome is not being loaded in the frontend, so the audioplayer doesn’t have icons. So rather than a nice play button, it’s just a little line. Easy fix, just enqueue_script for font-awesome, just like you do on the admin pages.
Thanks for the great plugin.
-
Hello @otrok7,
Hope you are well. And sorry for the inconvenience. I think it may have a conflict between your plugins or theme. You can disable one by one other plugins for testing if there any conflicts. you may also switch theme to another for checking. Please kindly check and let me know.
Thank you and kind regards
Hi,
Thanks for the quick reply!
I’ve tested on a completely fresh WordPress install, created from the latest docker images. All I’ve done in that wordpress is download and activate the latest version of your plugin and the upload a single audio file.
I then added the following shortcode to the sample page:
[wpdm_all_packages jstable=0 cols="audio_player|title|categories|download_link" colheads="::20px|||::20px"]The behavior was exactly as I described:

Thanks again for your support
Ron
-
This reply was modified 8 months, 2 weeks ago by
otrok7. Reason: Image not correct
Have you replied with any information ? Please kindly check and let me know.
Thank you and regards
Hi,
Thanks again. I replied, maybe you did not see it. I think things with images take longer to go through moderation. I will post the information again, assuming you cannot see the earlier post, for some reason.
I’ve tested on a completely fresh WordPress install, created from the latest docker images. All I’ve done in that wordpress is download and activate the latest version of your plugin and the upload a single audio file.
I then added the following shortcode to the sample page:
[wpdm_all_packages jstable=0 cols="audio_player|title|categories|download_link" colheads="::20px|||::20px"]The behavior was exactly as I described. And just as I side note, when I add the enqueue_style into your source code, the problem is solved.
I’m not sure what further information you need. But please let me know if you need anything else.
Thanks again for the super plugin!
Ron
Does the issue disappear only adding
enqueue_style? Please kindly let me know.Thank you and regards
Yes. Well, both register_style and then enqueue_style should be called, as seems to be your coding style. But yes, the only thing wrong is that font-awesome isn’t being loaded.
The issue is not claiming by other users. If it is in our private forum we can have close look. However, there can be some sytem mismatch in your site. If enqueue_style and register_style resolve issue on your site, you can continue with it. Please kindly check.
Thank you
Like I said, the issue occurs in a freshly installed docker container, with DownloadManager as the only active plugin. Maybe I’m missing something, but what sort of “system mismatch” do you expect?
Maybe the problem is that the audio_player function is rarely used in the free version. Does that mean you will not perform such a trivial fix. Moreover, the cause of issue is clearly seen on even the most superficial code examination.
Have you tried to recreate the issue yourself? It only takes about 5 minutes. When you create a docker image from wordpress, and activate download manager, and load an audio file, does that work for you?
Thanks again for your help and patience.
Ron
I can try to check the issue recreating in my test site. Please let me know how to create file page or single page for checking the issue. Please kindly check.
Thank you
Hi,
Thanks for making the effort to recreate the problem!
I think my explanation above was pretty clear, I don’t know what to add. Assuming you have DownloadManager running (downloaded from the WP plugin directory) and have some MP3s among your downloads, then the shortcode to insert on any page can be
[wpdm_all_packages jstable=0 cols="audio_player|title|categories|download_link" colheads="::20px|||::20px"]The audio player is there, but because the font hasn’t been loaded, the player is just a small bar, users don’t know what it is.
Thanks again,
Ron
Hi,
could you reproduce the problem? Do you need more information? I want to be clear that the problem exists on the free version (the one in the WordPress plugin directory).
Thanks for your effort!
Ron
Hi,
I was browsing the older support topics and found this one: https://ww.wp.xz.cn/support/topic/font-awesome-since-3-3-06-version/
In it Shahjada (@codename065) says that font-awesome has been removed and replace by your own icon library, but that it’s possible that some icons were left out, and he should be informed if the thread started notices anything.
It seems to me this is a good explanation for what is happening. It’s just a suggestion, but maybe you should consider saying something to Shahjada that the “play” and “pause” icons are missing from their library.
Thanks again,
Ron
Glad to hear that. However, if you need further help with anything else, then please don’t hesitate to open a new topic.
Thank you and regards
Wait!
Have you contacted @codename065? Has he acknowledged and agreed to fix the the problem? Even the other issue isn’t marked “Resolved”.
The reply is not coming here. Please kindly check.
Thank you
-
This reply was modified 8 months, 2 weeks ago by
The topic ‘AudioPlayer button not visible’ is closed to new replies.