Lay Theme Forum

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

    Image Randomizer

    Feedback
    2
    4
    322
    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.
    • edgrbnz
      edgrbnz last edited by

      Hi Lay-Theme Team,

      I'm currently thinking about a way to randomize certain images on my (still wip) site. The most comfortable way would be a plugin.

      The exact area I wanted to use it at would be for the logo in the header of my site. I’d like to be able to define n images / logos to randomly show up where the logo is placed in the headerbar.
      The coolest thing would be to even define that the images are randomly chosen per session. But it would totally fine to have it change with every browser refresh.

      Is there any easy way to do so?
      Or is this more like a custom-plugin?

      If it’s the latter could you point me in a direction what needs to be done?

      Cheers!

      ✦ ✦ ✦

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

        Dear @edgrbnz
        you can do this with jQuery. It won't be that difficult.
        If you don't know how to code jQuery – I think it will be rather difficult. A plugin won't help you I think.

        But have a look into jQuery. It's fun ;-)

        Marius

        www.mariusjopen.world

        edgrbnz 1 Reply Last reply Reply Quote 0
        • edgrbnz
          edgrbnz @mariusjopen last edited by

          @mariusjopen Any resources you’d recommend to have a look at?

          ✦ ✦ ✦

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

            Dear @edgrbnz
            a basic course in Codeacademy about jQuery is a good start.
            Otherwise google this like this: jquery random image

            You can find some examples also in jsFiddle I suppose.

            Keep this in mind though:
            http://laytheme.com/documentation.html#custom-javascript

            Best!

            Marius

            www.mariusjopen.world

            1 Reply Last reply Reply Quote 1
            • First post
              Last post

            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. Now see if your problem solved itself
            5. 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

            A
            7
            S
            T
            K

            Recent Topics

            • S

              can't change front page

            • A

              Theme crashed - because of Polylang?

            • M

              komische boxen auf der Website

            laytheme.com