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. Custom HTML, CSS and Javascript

Custom HTML, CSS and Javascript

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 1.9k 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.
  • A Offline
    A Offline
    andlia
    wrote on last edited by
    #1

    Hey Armin,

    This is a specific question so I wouldn't be surprised if you just glossed over this, but I have a specific customization in mind and I'm wondering if it would work with Lay Theme.

    To summarize, I want to incorporate code that would allow the user to see a picture when the cursor hovers over it. An example can be found here: http://jsfiddle.net/KumcX/1899/

    The code would utilize custom HTML, CSS, and Javascript. Would that be possible with Lay Theme?

    If this question or similar to it has been answered already, please accept my apologies.

    Thanks!

    1 Reply Last reply
    0
    • arminunruhA Online
      arminunruhA Online
      arminunruh
      Global Moderator
      wrote on last edited by arminunruh
      #2

      hello andlia!

      You could insert html in the gridder using "more"->"+html". Then you could use custom css and custom javascript to achieve this effect. If you did not buy lay theme yet and if you want to try out if that works well with lay theme I can give you a test-account. Please let me know if you want a test account, then I will write you an email.

      A 1 Reply Last reply
      0
      • arminunruhA arminunruh

        hello andlia!

        You could insert html in the gridder using "more"->"+html". Then you could use custom css and custom javascript to achieve this effect. If you did not buy lay theme yet and if you want to try out if that works well with lay theme I can give you a test-account. Please let me know if you want a test account, then I will write you an email.

        A Offline
        A Offline
        andlia
        wrote on last edited by
        #3

        @arminunruh Yes, I wanted to know if what I wanted to create was going to work with Lay Theme before I purchased it so a test account would be perfect. Thanks Armin! :smile:

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andlia
          wrote on last edited by andlia
          #4

          Hey Armin,

          Thanks for offering me access to the test account. The basics of it is very intuitive and user friendly, but I can't seem to have any of my custom Javascript working.

          I'm adding Frontend.module("GlobalEvents").on('projectpage', function(){ in front of it, but it still isn't working.

          The console is giving me an error, saying that its an "Uncaught TypeError: $ is not a function". I tried the HTML, CSS and Javascript in JFiddle and it's working fine, so I don't know what's going on.

          Thanks in advance!

          Here is my code:

              $(document).mousemove(function (e) {
                      $(".Ship").css({
                          left: e.pageX + 15,
                          top: e.pageY + 15
                      });
                      $(".Shit").css({
                          left: e.pageX + 15,
                          top: e.pageY + 15
                      });
                  });
                  
              $('span.spec.b').hover(function(){
                  $('.Ship').css('opacity', '1');
              }, function(){
                  $('.Ship').css('opacity', '0');
              });
          
              $('span.spec.c').hover(function(){
                  $('.Shit').css('opacity', '1');
              }, function(){
                  $('.Shit').css('opacity', '0');
              });
          });
          </script>
          1 Reply Last reply
          0
          • arminunruhA Online
            arminunruhA Online
            arminunruh
            Global Moderator
            wrote on last edited by
            #5

            Hey!

            Please use jQuery instead of $
            That should work

            A 1 Reply Last reply
            0
            • arminunruhA arminunruh

              Hey!

              Please use jQuery instead of $
              That should work

              A Offline
              A Offline
              andlia
              wrote on last edited by
              #6

              @arminunruh Wow, I feel so dumb.

              That worked. Thanks for your help and allowing me to try out Lay Theme. I'll buy a license in a couple of weeks when I receive my paycheck. Thanks again!

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


              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
              arminunruhA
              arminunruh
              F
              francesco
              L
              lurchifon
              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.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search