[Support request] Change the scroll to top button

Home Forums Support [Support request] Change the scroll to top button

Home Forums Support Change the scroll to top button

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1385292
    Richard

    I followed the instructions here:

    https://docs.generatepress.com/article/back-to-top-button/

    I edited the css. Not sure why it’s not working.

    #1385410
    David
    Staff
    Customer Support

    Hi there,

    what changes are you trying to make?

    #1385412
    Richard

    The colors for the background (the box itself) and the arrow.

    #1385452
    David
    Staff
    Customer Support

    You can edit them in Customizer > Colors > Footer

    #1386089
    Richard

    I did that but I think something is overriding it.

    #1386134
    David
    Staff
    Customer Support

    Urgh … some Elementor kit CSS is ie. this:

    body.elementor-kit-14 a {
        color: #00C2FF;
        font-family: "Fira Sans", fira sans;
    }
    
    body.elementor-kit-14 a:hover {
        color: #151B3F;
    }

    If you can’t change that then use this CSS to override it:

    .generate-back-to-top, .generate-back-to-top:visited {
        background-color: #000000 !important;
        color: #FFFFFF !important;
    }
    .generate-back-to-top:hover, .generate-back-to-top:focus {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    #1386150
    Richard

    I did use that css code to override it

    .generate-back-to-top,
    .generate-back-to-top:visited {
        background-color: #50E3C2;
        color: #151B3F;
    }
    .generate-back-to-top:hover,
    .generate-back-to-top:focus {
        background-color: #50E3C2;
        color: #fafafa;

    However, the color of the arrow doesn’t seem to change.

    #1386151
    David
    Staff
    Customer Support

    The code i provided here:

    https://generatepress.com/forums/topic/change-the-scroll-to-top-button/#post-1386134

    has the !important statement which override the elementor code.
    Use my code and change the colors to suit.

    #1386504
    Richard

    Ah it must’ve been !important. I guess that overrides it. Thanks!

    #1386647
    David
    Staff
    Customer Support

    !important is the blockbuster approach 🙂
    Glad to be of help

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.