Reputation: 243
I have installed the audio.js plugin. I have entered this code to the header.php which is in the includes folder
<script src="audio/audiojs/audio.min.js"></script>
The other pages shows the player with the default size. But the site that i am creating, only in the homepage i need to change the width of the player. Any idea?
Please help!!
Upvotes: 0
Views: 1117
Reputation: 1670
You can use the required css rules for the player you desire. Change the value of width of the div wrapping the audio tag.
echo "<div class='audiojs'>";
echo "<audio src='musik/$row[FileName]' preload='auto'></audio>";
echo "</div>";
css:
.audiojs{
width:500px;
height:50px;
}
Upvotes: 1