Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Back to Top Button

back to top
    • 9 years, 7 months ago onikmia
      Participant

      Expired

      Hi,

      I saw, that the the has an integrated “back to top button” function without the neccessity of a plugin.

      So I want to deactivate the current “back to top plugin” on my site http://www.multra-gmbh.com
      and activate the “theme function for back to top”.

      Is the following css code right to activate the desired funktion within the theme?

      .scrollup {
      z-index: 9999;
      display: block !important;
      }

      And how can I change the color of the integrated button as well as have an “up-arrow” symbol?

      Many thanks for your support in advance!

    • 9 years, 7 months ago Mirela
      Participant

      Hello,

      Yes, that code is ok. To change the color of the button and arrow, add this code:

      .scrollup { background-color: rgba(34,34,34,0.6); 
      background-image: url('img/icon_top.png');
      }

      Change the color and transparency to you wish.

      Best regards!

    • 9 years, 7 months ago darrenbennett1989
      Participant

      Expired

      Hello,

      I tried to add the custom CSS code under general settings but it doesnt seem to work an receive the following errors:

      – use of !important

      – fallback background-color (hex or RGB) should precede RGBA background-color.

      I have passed it in as follows:

       

      scrollup {

      z-index: 9999;

      display: block !important;

      }

      .scrollup { background-color: rgba(34,34,34,0.6);

      background-image: url(‘img/icon_top.png’);

      }

      Would I need to do something different for my layout?

      Many thanks

    • 9 years, 7 months ago onikmia
      Participant

      Expired

      Hi Mihaila,

      1. The change of color does not work…
      I neete the button to be color:#c7cdfc
      And the arrow should be: plaine white

      2. The button should fade in as soon as the user scrolls down.
      It should not apperar from the beginning as it is now at http://www.multra-gmbh.com

      The current code is:

      .scrollup {

      z-index: 9999;

      display: block !important;

      background-color: rgba(199, 205, 252, 1);

      background-image: url(‘img/icon_top.png’);

      }

      Many thanks!

    • 9 years, 7 months ago Mirela
      Participant

      Hello,


      @darrenbennett1989
      ,

      You have pasted the code wrong. The first code should have a dot at the beginning:

      .scrollup {
      z-index: 9999;
      display: block !important;
      }

      This will display the ‘back to top’ button in your site. (screenshot).
      The second block of code:

      .scrollup {
      background-color: rgba(199, 205, 252, 1);
      background-image: url(‘img/icon_top.png’);
      }

      contains the attributes that are responsible for the button color/transparency and arrow image. If you want to change them, edit the values of these attributes.

      Best regards!

    • 9 years, 7 months ago Mirela
      Participant

      Hello,


      @onikmia
      ,

      -the use of ‘!important’ is a notice, but it represents no issue in the code.
      -To change the background color just edit the second css code to this:
      .scrollup { background-color: #c7cdfc !important; }
      -The arrow is an image. To change it, edit the image source url to the one you want to use. (this attribute: background-image: url(‘img/icon_top.png’);)

      -By default the button position is the beginning and does not fade. I will suggest this edit to the developer team to include in the next update. Sorry but this is a customization not included in this support.

      Best regards!

    • 9 years, 7 months ago darrenbennett1989
      Participant

      Expired

      Is it possible to amend code so it only displays once the user has scrolled down the page a little?

       

    • 9 years, 7 months ago Mirela
      Participant

      Hello,

      As previously mentioned, the button position in default layout is the beginning and does not fade. You can change that with css but you have to do it yourself as this is a customization not included in this support.

      Best regards!

Viewing 7 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password