found how to change hardcoded margin and border of playlistplayer
-
Hi, hunted my ass off to fix this, and found it, so I thought I’d share. Please respond if it helps you… Let’s help eachother use this kickass player if Simon is held up a bit right now.
This is quite intermediate level and you need to be able to understand code somewhat. It can give you a helpful pointer if you need it though.I wanted to have my playlist player on the right of text, but text would touch it on the left of player. Also I wanted a litte grey outline to go with the pic on my site that also have that. And shorten the underborder. Firebug will give you ‘element.style’ which means its inline coded, in this case in the php code. Geeezzz, bummer. Solving it involved editing in several places:
in the player admin settings under playlist player options setting above and below player options to 3px (I think I override it later but just to be sure)
Then, at the top of this particular page, in wordpress text edit mode added (adjust this to your own particular page /post path with Firebug, using copy CSS path):
<style>
body.page div#wrapper div#content.page section#main.fullwidth article.post-68 div.article-inner section.entry div.wrap-MI
{
float: right;
border: 1px solid #F0F0F0;
}
</style>Float is to make my paragraph text go to the left of the player. Oh, put player shortcode first, then text.
Finally, the kicker:
in mp3j_main.php line 799 change to
} else if ( $pos == “rel-R” ) {
$floater = “position:relative; padding:” . ” 3px ” . ” 3px ” . ” 3px ” . ” 3px; margin:-1px 0px 0px 17px;”;This overrides fetching the margin and padding from the database settings. Your situation can be different, this only works for short code option rel-R but if you can understand code a little bit, now you know where to look or go, I hope.
Finally, here’s my shortcode:[mp3-jplayer tracks=”https://pathtomp3/Verhaalbass.mp3,
https://pathtomp3/StabbyGroove.mp3,
https://pathtomp3/PacMan.mp3,
https://pathtomp3/PostModernChillTrance.mp3,
https://pathtomp3/Bazen-128.mp3,
” width=”165px” pos=”rel-R” list=”y” vol=”73″ ]webtext myarticle blablabla follows here…
For a while the result can be seen in action on
https://www.audionstudio.nl/audion/workshopsjongeren/
Proud!Greets,
Jay van Bruggen
- The topic ‘found how to change hardcoded margin and border of playlistplayer’ is closed to new replies.