Support » Plugin: CodeArt - Google MP3 Player » PHP code for player to insert into page header.php

  • aaronwmcdonald


    Hi, I am using this plugin successfully at the moment and it is working great. I would like to, however, insert the player into a page header.php file so it displays in a particular location on the page and not in the page content or post area.

    Can you let me know the php code i need to be using to achieve this with this player? thank you.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor CodeArt


    Hi Aaron,

    We will be making the backend area prettier in the new version which should come out sometime next week. You will be able to copy the code from there.

    In the meantime, this should do the trick.

    Generate the full shortcode in any post like you would normally add it to a page, copy it and place it between the ” in the code below. Then copy everything in your header.php and it should work.

    <?php echo do_shortcode('') ?>


    Plugin Contributor CodeArt


    Saw an error, copy this code instead

    <?php echo do_shortcode(''); ?>

    The full one should be something like

    <?php echo do_shortcode('[ca_audio url="URL of the audio file" width="500" height="27" css_class="codeart-google-mp3-player"]'); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP code for player to insert into page header.php’ is closed to new replies.