{"id":5313,"date":"2021-10-19T01:04:11","date_gmt":"2021-10-19T01:04:11","guid":{"rendered":"https:\/\/essentials.pixfort.com\/knowledge-base\/?p=5313"},"modified":"2023-05-04T21:53:31","modified_gmt":"2023-05-04T21:53:31","slug":"customize-back-to-top-button","status":"publish","type":"post","link":"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/","title":{"rendered":"Customize Back to Top button"},"content":{"rendered":"\n

You can find the “Back to top” button settings in Theme options > General settings, <\/strong>where you can change its location (left or right), or you can disable it.<\/p>\n\n\n\n

The back top top<\/strong> button icon has the link website color by default (set in Theme option > Layout > Colors<\/strong>).<\/p>\n\n\n\n

You can customize the style of back to top button using the class .back_to_top<\/code> in CSS depending on your needs (you can add your code snippet into Theme options > Layout > Advanced > Custom css<\/strong>), for example:<\/p>\n\n\n\n

.back_to_top {
background-color: #037ef3 !important;
color: #fff !important;
border-radius: 25% !important;
}

a.back_to_top.bg-gray-2:hover, button.back_to_top.bg-gray-2:hover {
background-color: #037ef3 !important;
color: #fff !important;
border-radius: 25% !important;
opacity: 0.75 !important;
} <\/pre>\n\n\n\n

You can change the properties values above or add your own styling depending on your needs.<\/p>\n\n\n\n

<\/div>\n\n\n\n
Change<\/strong> spacing between back to top button and the browser edges<\/strong> #<\/strong><\/a><\/h5>\n\n\n\n

If the Back to Top location<\/strong> is set to “Right<\/strong>” on your website, you can change the default spacing between the back to top button and the right edge of the browser by adding the following code snippet into Theme options > Layout > Advanced > Custom css<\/strong>:<\/p>\n\n\n\n

.back_to_top {\n    right: 20px !important;\n}<\/code><\/pre>\n\n\n\n

If the Back to Top location<\/strong> is set to “Left<\/strong>” on your website, you can change the default spacing between the back to top button and the left edge of the browser by adding the following code snippet into Theme options > Layout > Advanced > Custom css<\/strong>:<\/p>\n\n\n\n

.back_to_top {\n    left: 20px !important;\n}<\/code><\/pre>\n\n\n\n

*You can change the 20px<\/code> value depending on your needs.<\/em><\/em><\/p>\n\n\n\n

Concerning the default spacing between the back to top button and the bottom edge of the browser, you can change it by adding the following code snippet into Theme options > Layout > Advanced > Custom css<\/strong>:<\/p>\n\n\n\n

.back_to_top.active {\n    bottom: 20px !important;\n}<\/code><\/pre>\n\n\n\n

*You can change the 20px<\/code> value depending on your needs.<\/em><\/em><\/p>\n\n\n\n

<\/div>\n\n\n\n
Want to hide the back to top button on Mobile?<\/strong><\/h5>\n\n\n\n

To hide the back to top button on mobile you can add this code snippet into Theme options > Layout > Advanced > Custom css:<\/strong><\/p>\n\n\n\n

@media (max-width: 540px) {
.back_to_top {
display: none !important;
}
}<\/pre>\n","protected":false},"excerpt":{"rendered":"Learn how to customize the back to top button in your website.","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[144,146,177,300],"yoast_head":"\nCustomize Back to Top button - Essentials Knowledge base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Customize Back to Top button - Essentials Knowledge base\" \/>\n<meta property=\"og:description\" content=\"Learn how to customize the back to top button in your website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/\" \/>\n<meta property=\"og:site_name\" content=\"Essentials Knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pixfort\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-19T01:04:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-04T21:53:31+00:00\" \/>\n<meta name=\"author\" content=\"pixfort\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pixfort\" \/>\n<meta name=\"twitter:site\" content=\"@pixfort\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pixfort\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/\"},\"author\":{\"name\":\"pixfort\",\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/#\/schema\/person\/ce28d19c64aa87116b0fc2685df067b6\"},\"headline\":\"Customize Back to Top button\",\"datePublished\":\"2021-10-19T01:04:11+00:00\",\"dateModified\":\"2023-05-04T21:53:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/\"},\"wordCount\":296,\"publisher\":{\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/#organization\"},\"keywords\":[\"back to top\",\"button\",\"customize\",\"scroll to top\"],\"articleSection\":[\"Quick answers\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/\",\"url\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/\",\"name\":\"Customize Back to Top button - Essentials Knowledge base\",\"isPartOf\":{\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/#website\"},\"datePublished\":\"2021-10-19T01:04:11+00:00\",\"dateModified\":\"2023-05-04T21:53:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customize Back to Top button\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/#website\",\"url\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/\",\"name\":\"Essentials Knowledge base\",\"description\":\"made by pixfort\",\"publisher\":{\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/#organization\",\"name\":\"pixfort\",\"url\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-content\/uploads\/sites\/33\/2020\/07\/support-logo-dark-clean.png\",\"contentUrl\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-content\/uploads\/sites\/33\/2020\/07\/support-logo-dark-clean.png\",\"width\":322,\"height\":110,\"caption\":\"pixfort\"},\"image\":{\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pixfort\",\"https:\/\/twitter.com\/pixfort\",\"https:\/\/www.instagram.com\/pixfort\/\",\"https:\/\/www.linkedin.com\/company\/pixfort\",\"https:\/\/www.youtube.com\/c\/Pixfort\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/#\/schema\/person\/ce28d19c64aa87116b0fc2685df067b6\",\"name\":\"pixfort\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f5c4155e987c6ab4b3e8278828fe024c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f5c4155e987c6ab4b3e8278828fe024c?s=96&d=mm&r=g\",\"caption\":\"pixfort\"},\"description\":\"Hey, this is pixfort support team, if you still need help you can always reach us via the chat messenger in your account on pixfort hub\",\"sameAs\":[\"http:\/\/hub.pixfort.com\"],\"url\":\"https:\/\/essentials.pixfort.com\/knowledge-base\/author\/pixfort\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Customize Back to Top button - Essentials Knowledge base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/","og_locale":"en_US","og_type":"article","og_title":"Customize Back to Top button - Essentials Knowledge base","og_description":"Learn how to customize the back to top button in your website.","og_url":"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/","og_site_name":"Essentials Knowledge base","article_publisher":"https:\/\/www.facebook.com\/pixfort","article_published_time":"2021-10-19T01:04:11+00:00","article_modified_time":"2023-05-04T21:53:31+00:00","author":"pixfort","twitter_card":"summary_large_image","twitter_creator":"@pixfort","twitter_site":"@pixfort","twitter_misc":{"Written by":"pixfort","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/#article","isPartOf":{"@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/"},"author":{"name":"pixfort","@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/#\/schema\/person\/ce28d19c64aa87116b0fc2685df067b6"},"headline":"Customize Back to Top button","datePublished":"2021-10-19T01:04:11+00:00","dateModified":"2023-05-04T21:53:31+00:00","mainEntityOfPage":{"@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/"},"wordCount":296,"publisher":{"@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/#organization"},"keywords":["back to top","button","customize","scroll to top"],"articleSection":["Quick answers"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/","url":"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/","name":"Customize Back to Top button - Essentials Knowledge base","isPartOf":{"@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/#website"},"datePublished":"2021-10-19T01:04:11+00:00","dateModified":"2023-05-04T21:53:31+00:00","breadcrumb":{"@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/customize-back-to-top-button\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/essentials.pixfort.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Customize Back to Top button"}]},{"@type":"WebSite","@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/#website","url":"https:\/\/essentials.pixfort.com\/knowledge-base\/","name":"Essentials Knowledge base","description":"made by pixfort","publisher":{"@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/essentials.pixfort.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/#organization","name":"pixfort","url":"https:\/\/essentials.pixfort.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-content\/uploads\/sites\/33\/2020\/07\/support-logo-dark-clean.png","contentUrl":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-content\/uploads\/sites\/33\/2020\/07\/support-logo-dark-clean.png","width":322,"height":110,"caption":"pixfort"},"image":{"@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pixfort","https:\/\/twitter.com\/pixfort","https:\/\/www.instagram.com\/pixfort\/","https:\/\/www.linkedin.com\/company\/pixfort","https:\/\/www.youtube.com\/c\/Pixfort"]},{"@type":"Person","@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/#\/schema\/person\/ce28d19c64aa87116b0fc2685df067b6","name":"pixfort","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/essentials.pixfort.com\/knowledge-base\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f5c4155e987c6ab4b3e8278828fe024c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f5c4155e987c6ab4b3e8278828fe024c?s=96&d=mm&r=g","caption":"pixfort"},"description":"Hey, this is pixfort support team, if you still need help you can always reach us via the chat messenger in your account on pixfort hub","sameAs":["http:\/\/hub.pixfort.com"],"url":"https:\/\/essentials.pixfort.com\/knowledge-base\/author\/pixfort\/"}]}},"_links":{"self":[{"href":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/5313"}],"collection":[{"href":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=5313"}],"version-history":[{"count":11,"href":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/5313\/revisions"}],"predecessor-version":[{"id":6882,"href":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/5313\/revisions\/6882"}],"wp:attachment":[{"href":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=5313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=5313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/essentials.pixfort.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=5313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}