Support » Plugin: Compact WP Audio Player » how to position the code to the right of my menu?

  • Michael Lanfield

    (@michaellanfield)



    Hello. I have a url with a jingle https://www.thosecrazyvegans.net/wp-content/uploads/2017/11/official_website.mp3

    and I would like to add that mp3 somewhere to the top of the home page maybe beside the store menu or logo to the right as one simple play/pause button with some small grey text beside it to the right saying “Play Our Jingle”. You provide a short code, but is there a way to get a css code and add it somehow next to the right of the menu? Thanks 🙂

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, please check the following documentation. There is an example php code you can use to add the shortcode to one of your theme files.

    Let me know if this helps you.

    Kind regards

    Michael Lanfield

    (@michaellanfield)

    Hello. Which code do I use and where do I add it if I would like to add it to my homepage next to my menu?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, use the following one.

    Adding the Audio Player to a Theme’s Template File

    You can also embed the audio player in your theme’s template file. Here is an example code that you can add to your template file:

    If you wanted to add the button in the header, then you would add the php code to your theme header.php file.

    Regards

    • This reply was modified 5 months, 4 weeks ago by  mbrsolution.

    hi. where is the code? I don’t see it above.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, in the documentation link I shared above you will see the following header. That is where you will find the code.

    Adding the Audio Player to a Theme’s Template File

    You can also embed the audio player in your theme’s template file. Here is an example code that you can add to your template file:

    Regards

    this is the code I would like to add right of the menu
    [sc_embed_player fileurl=”https://www.thosecrazyvegans.net/wp-content/uploads/2017/11/official_website.mp3″]
    <p style=”display: inline”>- Play Our Jingle</p>

    I tried adding this code the header page and the global css and no luck.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, did you add the code using PHP similar to the following code?

    <?php echo do_shortcode('[sc_embed_player fileurl="URL OF THE MP3 FILE"]'); ?>

    Regards

    I will try now.

    I added this code

    <?php echo do_shortcode(‘[sc_embed_player fileurl=”https://www.thosecrazyvegans.net/wp-content/uploads/2017/11/official_website.mp3″]’); ?>

    to global css and header No luck.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, if you are having troubles adding the code to your themes header.php file then my suggestion is to hire a developer. It is important that you add the code in the right area or else it will not work. Unfortunately I have not written a tutorial on how to do this.

    Kind regards

    Hello and thank you for responding. I would like a jingle that plays not automatically when the website loads, but only once when a person clicks on a play play button. I would like this jingle to be played only on the homepage somewhere in Revolution Slider (now that I think about it, not next to the menu) and no where else. The jingle is only 5 seconds long and I do not want it played when a user goes to another page, just on the front/home page. How can this be done with your plugin?

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, is the original issue resolved? If it is can you mark it as resolved.

    Can you start a new support thread with your new question. This method allows us to manage and help resolve each issue better.

    Thank you

    No. I still have an issue. Read my last message above please. Thank you.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi,

    I would like a jingle that plays not automatically when the website loads,

    Make sure you don’t have the following parameter autoplay=true included in the shortcode.

    Let me know if you need more help.

    Thank you

    • This reply was modified 5 months, 3 weeks ago by  mbrsolution.
Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.