Linux 软件免费装
Banner图

Elevator

开发者 ericakfranz
更新时间 2026年11月1日 08:05
PHP版本: 4.7 及以上
WordPress版本: 7.1.0
版权: MIT
版权网址: 版权信息

标签

music navigation scrolltotop backtotop

下载

1.0.5.3 1.0.5.4 1.1.0 1.0.5.5

详情介绍:

Based on the brilliant script Elevator.js. How can you resist the familiar notes and smooth ride we've all come to expect on a quality elevator ride? Just activate and enjoy! The default music is Lounge Jazz. To preview all 26 tracks and change the default, go to Settings > Elevator. A ding always plays when your visitor reaches the top. Please note: to keep the plugin small, the music files are in OGG format only. Browsers that cannot play OGG will still scroll to the top, but without sound. This includes Internet Explorer and Opera Mini, which do not support OGG at all, and Safari older than 14.1. Safari 14.1 to 18.3 (desktop) and Safari on iOS 17.4 to 18.3 have only partial OGG support, so some music may not play there. Try the demo - at the bottom of the page select the 'Back to Top' link. Watch it in action https://www.youtube.com/watch?v=dZbC1CTxV4U Use it with your theme's own Back to Top link Already have a Back to Top link? Go to Settings > Elevator > Back to Top Link to turn off Elevator's link, or enter a CSS selector (such as .back-to-top) to add the music and smooth scroll to the link you already have. Customize Elevator You can also customize the appearance of Elevator with CSS. Need help? See the Elevator Style Guide. Credits Elevator by Erica Franz. Plugin page: fatpony.me/plugins/elevator. Elevator.js created by Tim Holman. Plugin repo banner background by Luigi Anzivino, licensed Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International.

安装:

  1. Install Elevator either through your WordPress Plugins screen or by uploading the files to your server.
  2. Activate Elevator.
  3. Enjoy the elevator ride!

升级注意事项:

1.1.0 IMPORTANT: The default music has changed to "Lounge Jazz". The original elevator music has been removed. You can now choose your music, and use your theme's own Back to Top link, at Settings > Elevator.

常见问题:

No 'Back to Top' Button

Elevator relies on the wp_footer() hook. If your theme doesn't include this tag somewhere (it is most commonly found in the footer.php template file, just before the closing body tag), then Elevator cannot work its magic. Check your theme first if Elevator's 'Back to Top' button isn't appearing on the page after you've activated the plugin.

Audio not playing

The music starts when a visitor clicks the link, which browsers generally allow. If there is no sound, the cause is usually one of these:

  • The device or browser tab is muted, or the browser's site settings block sound for your site.
  • The browser cannot play OGG audio (see the note in the Description).
The scroll to top still works without sound.

My theme already has a Back to Top link

Go to Settings > Elevator > Back to Top Link. You can either uncheck "Add the Back to Top link to the bottom of every page", or enter the CSS selector of your theme's link (for example .back-to-top or #scroll-top) in "Use my own link". Elevator will then play the music and scroll to the top when that link is clicked. If your theme's link has its own scrolling script, you may also need to turn that off in the theme.

Can developers change this in code?

Yes. Use these filters, which override the settings:

  • elevator_output_button - return false to stop Elevator adding its link.
  • elevator_button_selector - return a CSS selector for the element Elevator should attach to.
Example: add_filter( 'elevator_output_button', '__return_false' );

'Back to Top' Button Not Working

If your 'Back to Top' button is loading, but the Elevator seems to be broken and stuck in the basement, check for JavaScript errors in your browser's console. You can use Google Chrome's Dev Tools for this. If you're unfamiliar with checking for JavaScript errors in your browser, I suggest you check out Julie Pagano's JavaScript Debugging for Beginners article. If your site is generating a JavaScript error, it's possible for it to conflict with Elevator and I suggest you resolve the JavaScript error before proceeding with any other troubleshooting.

更新日志:

1.1.0 1.0.5.5 1.0.5.4 1.0.5.3 1.0.5.2 1.0.5.1 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0