Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Audio in the background video

    General Discussion
    video homepage
    2
    4
    1128
    Loading More Posts
    • 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
      Charlotteleb last edited by

      Hello, Thanks for Laytheme. I want to have the audio of my background video (for the homepage). Please tell me how it's possible to put on the sound ! My website is : http://hitohadakan.com/
      Many thanks.

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        Hey!
        Can you please update your website to the latest lay theme?
        Please enter this js into "Lay Options" -> "Custom CSS & HTML" -> "Custom <head> content"

        <script>
        Frontend.GlobalEvents.on("newpageshown", function(layoutObj, type, obj){
        	if(type == "page" && obj.id == 66){
        		jQuery("#cover-region .background-video").attr('muted', false).attr("volume", 0.5);
        	}
        });
        </script>
        

        Hmm I think this js should work. Right now it doesn't work for me when I try it on your website. Does your video have sound at all?

        1 Reply Last reply Reply Quote 0
        • arminunruh
          arminunruh Global Moderator last edited by

          Hey Charlotte, I guess this hasn't worked yet.
          I purposely removed the sound of row background videos because I think it is viewed as bad practice to play sounds when a user visits your website.

          Ok please take a look here http://laythemeforum.com:4567/topic/725/use-a-video-as-page-background/6

          You can try to insert your video like that. But for the html remove " muted="" "

          Also you would need to remove your current row background video from the row on your homepage. I hope that works for you!

          1 Reply Last reply Reply Quote 0
          • arminunruh
            arminunruh Global Moderator last edited by

            Hello Charlotte!

            Lay theme 1.98 is now available. With that you can mute or unmute a row video background!

            Just right click on the row -> "set video background" and then uncheck "mute". :)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Post a link to where the problem is if possible, please <3
            I don't answer or check forum DMs, please just post on the forum.
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

            Before you post:

            Use the Search Feature. Maybe there is already a solution to your issue.

            1. Update Lay Theme and all Lay Theme Addons
            2. Disable all Plugins
            3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
            4. When using a WordPress Cache plugin, disable it or clear your cache. Now see if your problem solved itself.
            Go here, see if your problem is listed here:
            Troubleshooting

            When you post:
            1. Post a link to where the problem is
            2. If the problem is difficult to explain, post screenshots / link to a video to explain it

            Thanks!

            Online Users

            Recent Topics

            • A

              website error

            • Website gone all blank after update 6.3.1

            • S

              can't update project category content

            • C

              lightbox: how to go back to project instead of home with back button

            laytheme.com