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. Addons
  3. Image Hover - custom image position

Image Hover - custom image position

Scheduled Pinned Locked Moved Addons
4 Posts 3 Posters 560 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.
  • D Offline
    D Offline
    DominikHollaus
    wrote on last edited by
    #1

    Hi, i am wondering if, in the image hover addon, there is any way that i can set a custom position for the image?

    For example i want to have text on the left side of the page and have the images appear on the right side of the page. I know that i can change it to centered in the addon settings but i wish there was a “centered right“ option. Is there a way to do it with custom css?

    Thank you in advance! :)
    Dominik

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear @DominikHollaus

      Could you please post a link to your website with an example image and text setup if possible?

      I can take a better look :)

      Have a wonderful day & thank you for using Lay Theme

      Best wishes
      Richard

      1 Reply Last reply
      0
      • P Offline
        P Offline
        paulomariz
        wrote on last edited by
        #3

        @Richard-Keith said in Image Hover - custom image position:

        @DominikHollaus

        Hello,

        The website is divided in two parts, text on the left and images on the right. I have the same doubt that @DominikHollaus, can the hoover image appear on the right side instead of the center? If is possible use the css to define the image position?

        The website is very simple, just a temporary page before developing the final website.

        www.feia.pt

        1 Reply Last reply
        0
        • RichardR Offline
          RichardR Offline
          Richard
          Global Moderator
          wrote on last edited by
          #4

          Dear @paulomariz

          Thank you for providing a link.

          You are correct that it is possible through Custom CSS.
          We can add our css through 'Lay Options - Custom CSS & HTML'
          Screen Shot 2020-09-14 at 2.51.54 PM.png

          For this we will need some basic knowledge of CSS :
          https://www.khanacademy.org/computing/computer-programming/html-css

          and also using the "inspect' developer tools in Google Chrome:
          https://www.khanacademy.org/computing/computer-programming/html-css/web-development-tools/a/using-the-browser-developer-tools

          (inspecting the webpage)
          So the images are located in a 'image-hover-region' that is invisible, until we hover over a link and this adds a class called 'show' which in turn makes the image visible . opacity:0 to opacity:1

          Screen Shot 2020-10-14 at 6.18.31 PM.png

          Here you can see the image is pushed to the right.
          I have done this by targeting the 'img' (image) within the 'image-hover-region'

          My CSS:

          .lay-imagehover-region img {
              margin-left:300px;
          }
          

          This is a basic CSS but you can feel free to adjust this to your needs.

          Now if you wish to target a specific image, this can be done as each image has its own attribute number.
          When inspecting the link we can see this:
          Screen Shot 2020-10-14 at 6.18.42 PM.png

          data-hoverimageid="125"
          

          so we would add this to our code in order to target this specific image:

          .lay-imagehover-region img[data-hoverimageid="125"] {
              margin-left:300px;
          }
          

          I hope helps you and good Luck! :)

          Thank you for using Lay Theme
          Best wishes
          Richard

          1 Reply Last reply
          0
          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
          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