• Hi there,
    I’m using a King Size Themeforest template for some of my sites… I would like to embed a song in the home page… For this I’m using your Audio Player 2.0.
    the problem consist that I must put a condition like this:

    <?php if(is_home()) {?><?php if (function_exists(“insert_audio_player”)) { insert_audio_player(“[audio:https://www.domain.com/path/to/song.mp3%5D“); } ?><?php } ?>

    but the theme does not recognize the instruction and response

    Parse error: syntax error, unexpected ‘[‘ in /web/htdocs/www.xxxxxxxxxxxx.com/home/wordpress/wp-content/themes/kingsize/header.php on line 320.

    The support theme tip is:
    Hello,

    It’s due to your shortcode being inserted into the header. The symbol referred to is from:
    [audio:https://www.domain.com/path/to/song.mp3%5D
    Unfortunately, we don’t provide support for this. You may wish to contact the plugin for support...

    How I can solve this problem???
    Could be some script without the short code to be useful?
    Best regards
    Eric

  • The topic ‘Audio in the King Size home page’ is closed to new replies.