WordPress.org

Ready to get started?Download WordPress

Forums

MP3-jPlayer
[resolved] How does "style" parameter work? (4 posts)

  1. stevebrooks
    Member
    Posted 1 year ago #

    On the shortcode for the playlist player, one of the parameters is:

    "style: css class names(s) to add"

    How does this parameter work? I've tried adding css class names like "margin" and "padding" to change the position of the player on the page. None of it has worked. The player stays in the same position. Here's an example of the syntax I've tried:

    [mp3-jplayer tracks="fileA.mp3, fileB.mp3" style="margin-right: 30px;"]

    Am I using the wrong syntax? How is the style parameter supposed to work?

    Thanks.

    http://wordpress.org/extend/plugins/mp3-jplayer/

  2. Deskslider
    Member
    Posted 1 year ago #

    Yes please Simon, I'm curious too. I have troubles to and need to change a left margin. Firebug says it's in element.style, so it's somewhere inline. I'd like to try the shortcode style parameter, but we have no real syntax examples. I tried it too and can't get it to work.

  3. Deskslider
    Member
    Posted 1 year ago #

    figuered it out, or at least a hint to it: on the example page
    http://sjward.org/jplayer-for-wordpress/
    example 16 and 17, the style parameter is used. I used it to remove the 'hide playlist' button
    like
    .....width="165px" pos="rel-R" list="y" vol="73" style="nolistbutton"]
    so probably it's not a html css style thing as suggested in the help. I thought so too a couple of hours ago.
    This is what I know. I'm not sure where a list of possible parameters is, I believe it's somewhere, look for it. (maybe do a text search in the plugin files for nolistbutton) If you find it, please add it here.

    Some people swear a littlebit at this plugin, but I spent a while to master this beast and now that I control it I'm quit proud of what I can do with it. Check my
    http://www.audionstudio.nl/audion/workshopsjongeren/

    Good luck.

  4. simon.ward
    Member
    Plugin Author

    Posted 1 year ago #

    There's now some help in 1.8.3, and a table listing the class names that i've added so far. The demo page has some example shortcodes using the style parameter, i'll try improve it a little.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.