{"id":213750,"date":"2024-12-13T05:08:26","date_gmt":"2024-12-13T05:08:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/back-to-top-block\/"},"modified":"2025-11-12T15:33:17","modified_gmt":"2025-11-12T15:33:17","slug":"back-to-top-block","status":"publish","type":"plugin","link":"https:\/\/lin.wordpress.org\/plugins\/back-to-top-block\/","author":8048003,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.3","stable_tag":"1.0.3","tested":"6.9.4","requires":"6.6","requires_php":"7.4","requires_plugins":null,"header_name":"Back To Top Block","header_author":"Phil Hoyt","header_description":"Adds a customizable Back to Top button that helps visitors return to the top of the page.","assets_banners_color":"1c1c1c","last_updated":"2025-11-12 15:33:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/philhoyt\/Back-to-Top-Block","header_author_uri":"https:\/\/philhoyt.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":856,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"philhoyt","date":"2024-12-13 05:07:59"},"1.0.2":{"tag":"1.0.2","author":"philhoyt","date":"2024-12-13 20:58:34"},"1.0.3":{"tag":"1.0.3","author":"philhoyt","date":"2025-11-12 15:33:17"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3207324,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3207324,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3207324,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"backtotop\/back-to-top-block":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"backtotop\/back-to-top-block","version":"1.0.3","title":"Back To Top Block","category":"widgets","icon":"arrow-up-alt2","description":"Adds a customizable Back to Top button that helps visitors return to the top of the page.","keywords":["scroll","navigation","button","top"],"example":{},"supports":{"html":false,"anchor":true,"className":true,"color":{"text":true,"background":true},"spacing":{"margin":true,"padding":true},"typography":{"fontSize":true,"lineHeight":true,"textAlign":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalWritingMode":true,"__experimentalDefaultControls":{"fontSize":true}}},"textdomain":"back-to-top-block","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css","viewScript":"file:.\/view.js","attributes":{"showIcon":{"type":"boolean","default":true},"showText":{"type":"boolean","default":true},"buttonText":{"type":"string","default":"Back to Top","maxLength":50},"iconUrl":{"type":"string","default":"","pattern":"^(https?:\/\/)?[w-.]+.[a-zA-Z]{2,}(\/S*)?$"}}}},"tagged_versions":["1.0.1","1.0.2","1.0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3207324,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"Block settings panel showing customization options for the Back to Top button"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[10418,1220,1753,790,1791],"plugin_category":[43],"plugin_contributors":[234989],"plugin_business_model":[],"class_list":["post-213750","plugin","type-plugin","status-publish","hentry","plugin_tags-back-to-top","plugin_tags-block","plugin_tags-navigation","plugin_tags-scroll","plugin_tags-scroll-to-top","plugin_category-customization","plugin_contributors-philhoyt","plugin_committers-philhoyt"],"banners":{"banner":"https:\/\/ps.w.org\/back-to-top-block\/assets\/banner-772x250.png?rev=3207324","banner_2x":"https:\/\/ps.w.org\/back-to-top-block\/assets\/banner-1544x500.png?rev=3207324","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/back-to-top-block\/assets\/icon-256x256.png?rev=3207324","icon_2x":"https:\/\/ps.w.org\/back-to-top-block\/assets\/icon-256x256.png?rev=3207324","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/back-to-top-block\/assets\/screenshot-1.png?rev=3207324","caption":"Block settings panel showing customization options for the Back to Top button"}],"raw_content":"<!--section=description-->\n<p>The Back to Top Block adds a customizable button that allows users to smoothly scroll back to the top of your page. Perfect for long-form content and improved user experience.<\/p>\n\n<p><strong>Key Features:<\/strong><\/p>\n\n<ul>\n<li><strong>Customizable Button Text<\/strong> - Change the text to match your site's language or style<\/li>\n<li><strong>Optional Icon Display<\/strong> - Show or hide the up arrow icon<\/li>\n<li><strong>Custom Icon Support<\/strong> - Upload your own icon to match your site's design<\/li>\n<li><strong>Smooth Scrolling<\/strong> - Elegant animation when scrolling to top<\/li>\n<li><strong>Reduced Motion Support<\/strong> - Respects user's motion preferences<\/li>\n<\/ul>\n\n<p><strong>How it Works<\/strong><\/p>\n\n<p>Simply add the block to your page or post where you want the back-to-top button to appear. The button will automatically handle scrolling to the top of the page when clicked, with smooth animation for users who haven't enabled reduced motion preferences.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/back-to-top-block<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Use the Block Editor to add the Back to Top Block to your pages<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='can%20i%20customize%20the%20button%20appearance%3F'><h3>Can I customize the button appearance?<\/h3><\/dt>\n<dd><p>Yes, you can:\n* Show\/hide the arrow icon\n* Show\/hide the button text\n* Change the button text\n* Upload a custom icon<\/p><\/dd>\n<dt id='does%20it%20work%20with%20all%20themes%3F'><h3>Does it work with all themes?<\/h3><\/dt>\n<dd><p>Yes, the block is designed to work with any WordPress theme that supports the block editor.<\/p><\/dd>\n<dt id='is%20it%20accessible%3F'><h3>Is it accessible?<\/h3><\/dt>\n<dd><p>Yes, the block is built with accessibility in mind, including proper ARIA labels and keyboard navigation support.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Added server-side attribute sanitization for improved security<\/li>\n<li>Enhanced icon URL validation to prevent external URLs<\/li>\n<li>Added extensibility hooks for developers<\/li>\n<li>Improved button text validation logic<\/li>\n<li>Added error handling for older browsers<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Improved focus management after scroll<\/li>\n<li>Minor accessibility enhancements<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<li>Basic button functionality<\/li>\n<li>Customization options for text and icon<\/li>\n<li>Custom icon upload support<\/li>\n<li>Smooth scrolling implementation<\/li>\n<\/ul>","raw_excerpt":"A customizable &quot;Back to Top&quot; button block to help users quickly navigate to the top of your pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/213750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=213750"}],"author":[{"embeddable":true,"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/philhoyt"}],"wp:attachment":[{"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=213750"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=213750"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=213750"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=213750"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=213750"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lin.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=213750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}