WordPress.org

Ready to get started?Download WordPress

Forums

CodeArt - Google MP3 Player
PHP code for player to insert into page header.php (3 posts)

  1. aaronwmcdonald
    Member
    Posted 1 year ago #

    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/

  2. CodeArt
    Member
    Plugin Contributor

    Posted 1 year ago #

    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

  3. CodeArt
    Member
    Plugin Contributor

    Posted 1 year ago #

    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"]'); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.