Title: PHP code for player to insert into page header.php
Last modified: August 21, 2016

---

# PHP code for player to insert into page header.php

 *  [aaronwmcdonald](https://wordpress.org/support/users/aaronwmcdonald/)
 * (@aaronwmcdonald)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/php-code-for-player-to-insert-into-page-headerphp/)
 * 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.
 * Regards,
    Aaron
 * [http://wordpress.org/extend/plugins/google-mp3-audio-player/](http://wordpress.org/extend/plugins/google-mp3-audio-player/)

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

 *  Plugin Contributor [Codeart](https://wordpress.org/support/users/codeart/)
 * (@codeart)
 * [13 years ago](https://wordpress.org/support/topic/php-code-for-player-to-insert-into-page-headerphp/#post-3666860)
 * 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('') ?>`
 * Thanks
 *  Plugin Contributor [Codeart](https://wordpress.org/support/users/codeart/)
 * (@codeart)
 * [13 years ago](https://wordpress.org/support/topic/php-code-for-player-to-insert-into-page-headerphp/#post-3666861)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/google-mp3-audio-player_54bcff.svg)
 * [CodeArt - Google MP3 Player](https://wordpress.org/plugins/google-mp3-audio-player/)
 * [Support Threads](https://wordpress.org/support/plugin/google-mp3-audio-player/)
 * [Active Topics](https://wordpress.org/support/plugin/google-mp3-audio-player/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-mp3-audio-player/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-mp3-audio-player/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Codeart](https://wordpress.org/support/users/codeart/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/php-code-for-player-to-insert-into-page-headerphp/#post-3666861)
 * Status: not resolved