• Resolved OsakaWebbie

    (@osakawebbie)


    I’d like to use the Template1 version of the player, but it comes up with “visibility:hidden” for no reason that I can fathom. What is going on? The small player works fine.

    You can see it in action at: http://oicjapan.org/message/
    I have labeled the two player calls with bright green text, so you can’t miss it. Here is the code I’m using:

    echo 'template1: '.do_shortcode('[sc_embed_player_template1 fileurl="'.$url.'"]');
    echo 'regular: '.do_shortcode('[sc_embed_player fileurl="'.$url.'"]');

    Thanks in advance for any help on this.

    https://ww.wp.xz.cn/plugins/compact-wp-audio-player/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi OsakaWebbie it could be a conflict with your theme or a plugin. For now I would simply change the css code to the following.

    element.style {
        visibility: visible;
        width: 100%;
    }

    That should fix your problem.

    Regards

    Thread Starter OsakaWebbie

    (@osakawebbie)

    Well, what you wrote didn’t quite do it, because inline styling overwrites styling elsewhere. But I learned something new: !important will protect against even inline styles, so adding that did the trick. I had previously thought that inline styles were immutable.

    I also learned that apparently the Template1 mode of this plugin simply uses WordPress’s [audio] shortcode under the hood – the resulting markup is identical. And when I use [audio] directly, I get the same visibility:hidden. The CSS and JS that this plugin loads seem to be all for the purpose of the little button-style player – since I’m not using that anywhere on my site, as far as I can tell I can just disable the plugin and use [audio] directly to save a couple of HTTP requests.

    If the hiddenness is a conflict with something on my site, I don’t know what it is, but with the CSS to make it visible, it plays fine, so I won’t worry about it for now.

    P.S. The HTML5 player looks really terrible and bulky in IE, but I don’t want to make things more complex with fancy JS players. C’est la vie!

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi I am glad you were able to resolve your issue.

    Yes, I understand what you mean. I only provided the code above as a guide. Perhaps in the future the developers might implement some nifty code that will allow for something similar to what you posted here.

    If you don’t have any more questions in regards to this support thread, can you mark this as resolved.

    Thank you

    Thread Starter OsakaWebbie

    (@osakawebbie)

    Oh, I guess I should have marked that box the last time – I don’t see a way to mark it afterwards without writing another post so here it is. 😉

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Template1 visibility hidden’ is closed to new replies.