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. Scroll To Top: customize hover state

Scroll To Top: customize hover state

Scheduled Pinned Locked Moved General Discussion
7 Posts 4 Posters 293 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.
  • I Offline
    I Offline
    Ilina Catana
    wrote on last edited by
    #1

    Dear @mariusjopen,

    I'm looking for a way to change the color of a link "Scroll to top" on hover.
    I added "Scroll to top" to a block and I can't give it another color during a mouse hover.

    I tried to target the ".scrolltotop" class, and to create an ID and a new class for this block.
    Unfortunately I didn't succeed in making one of these solutions work.
    I certainly made a writing error in my css code.

    Do you have an idea what could work?

    Thanks :)

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

      Dear @Ilina-Catana
      you need to address the link inside the class and also make use of !important.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Ilina Catana
        wrote on last edited by
        #3

        Dear @mariusjopen,
        thanks a lot for your answer!

        About the link inside the class:
        I inspected the page and can't find a "href" for "text lay-textformat-parent scrolltotop" (see screenshot).
        Would it be something like ".scrolltotop a"?

        Thanks a lot!

        Best,
        Ilina

        0_1574716974403_Inspect_Scrolltotop.png

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

          :D

          .scrolltotop:hover>*{
              color: blue!important;
          }
          
          1 Reply Last reply
          1
          • I Offline
            I Offline
            Ilina Catana
            wrote on last edited by
            #5

            Dear @mariusjopen

            thanks you so much!

            It was the ">*" that I was missing...
            Problem solved, and I learned something :) :)

            Thanks for taking the time!

            Best :)

            Ilina

            P 1 Reply Last reply
            0
            • mariusjopenM Offline
              mariusjopenM Offline
              mariusjopen
              Global Moderator
              wrote on last edited by
              #6

              Dear @Ilina-Catana
              ah great! Thank you for letting us know!

              best!

              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0
              • I Ilina Catana

                Dear @mariusjopen

                thanks you so much!

                It was the ">*" that I was missing...
                Problem solved, and I learned something :) :)

                Thanks for taking the time!

                Best :)

                Ilina

                P Offline
                P Offline
                pavloradich
                wrote on last edited by
                #7

                @Ilina-Catana could you please share full code and the instruction on how to do it? also trying to customize the hover state of the scroll to top. Thank you

                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
                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