Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Compact WP Audio Player

Compact WP Audio Player

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 94 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cristian
    wrote on Mar 6, 2021, 2:29 AM last edited by
    #1

    Hello,
    I was wondering if Laytheme supports Compact WP Audio Player?
    https://wordpress.org/plugins/compact-wp-audio-player/

    I have been trying it with no good results, just wanted to make sure.

    Thank you.
    Cristian

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Richard
      Global Moderator
      wrote on Mar 9, 2021, 7:45 AM last edited by Richard Mar 9, 2021, 2:46 AM
      #2

      Dear Cristian

      Currently Lay Theme does not offer support for Compact WP Audio player, them being a third-party plugin, though it may work just fine - I havent tested it myself.

      I do wish to offer a solution if this helps you.

      Audio players can be created with some very basic code, here in this link some is provided:
      https://www.w3schools.com/html/html5_audio.asp

      <audio controls>
        <source src="horse.ogg" type="audio/ogg">
        <source src="horse.mp3" type="audio/mpeg">
      Your browser does not support the audio element.
      </audio>
      

      These <source> elements can be linked with any audio format that modern web browsers understand - most commonly .mp3

      When uploading an mp3 into your 'Media Library' - on closer inspection you can copy the URL path for use/input with these <source> elements

      Screen Shot 2021-03-09 at 8.30.19 PM.png

      For Example:

      <audio controls>
        <source src="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-11.mp3" type="audio/mpeg">
      
      Your browser does not support the audio element.
      </audio>
      

      A Closer look at the <source>

        <source src="https://www. <--- I HAVE INSERTED THE URL FILE PATH THAT I WANT HERE---> .mp3" type="audio/mpeg">
      

      Now I am able to take this code and insert it into my Gridder in a Project or Page using the " +MORE - +HTML" Option ( Adding the code into the input provided ) :

      Screen Shot 2020-09-14 at 2.50.29 PM.png

      Now on my Front-end i have an audio player, playing the mp3!

      Screen Shot 2021-03-09 at 8.37.34 PM.png

      This is the default audio controller, but with Google you can find heaps of reference for changing this up.

      This example was to provide a 'plan-B' for if the "Compact WP Audio Player" was not compatible for whatever reason ( likely one of the many Audio plugins will work with Laytheme )

      <NOTE: You may find it difficult to autoplay the music - Since i think 2018, Browsers have stopped the ability to play sounds automatically on page load - the user has to initiate this >

      Hope this helps Cristian & have a wonderful day! :)

      Sincerely
      Richard

      1 Reply Last reply
      1
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes

      2/2

      Mar 9, 2021, 7:45 AM


      I also code custom websites or custom Lay features.
      💿 Email me here: 💿
      info@laytheme.com

      Before you post:
      1. When using a WordPress Cache plugin, disable it or clear your cache.
      2. Update Lay Theme and all Lay Theme Addons
      3. Disable all Plugins
      4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

      This often solves issues you might run into

      When you post:
      1. Post a link to where the problem is
      2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
      3. If the problem is difficult to explain, post screenshots / link to a video to explain it
      Online Users
      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
      laytheme.com
      • Login

      • Don't have an account? Register

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Search