Linux 软件免费装
Banner图

Page scroll to id

开发者 malihu
更新时间 2024年7月17日 19:08
捐献地址: 去捐款
PHP版本: 3.3 及以上
WordPress版本: 6.6
版权: The MIT License (MIT)
版权网址: 版权信息

标签

navigation page scrolling smooth scroll page animation single-page navigation

下载

1.6.0 1.6.1 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.9 1.7.0 1.7.1 1.7.2 1.5.4 1.5.0 1.6.2 1.7.3 1.7.4 1.5.1 1.5.3 1.2 1.5.9 1.7.5 1.7.6 1.7.7 1.5.5 1.6.8 1.7.8 1.5.2 1.7.9 1.5.6 1.5.7 1.5.8

详情介绍:

Page scroll to id is a fully featured plugin which replaces browser's "jumping" behavior with a smooth scrolling animation, when links with href value containing # are clicked. It provides all the basic tools and advanced functionality for single-page websites, in-page navigation, back-to-top links etc. with features like: Demo (default animation duration/easing, link highlighting etc.) Plugin resources, links and tutorials Requirements Page scroll to id requires WordPress version 3.3 or higher (jQuery version 1.7.0 or higher) and your theme must (and should) have wp_head() and wp_footer() functions. In some Microsoft Windows based web servers some plugins might produce an error 500 (depends on server/PHP configuration). To pinpoint the issue enable debugging in wp-config.php and check wp-content/debug.log file for relevant errors. GDPR (General Data Protection Regulation) The plugin is GDPR compliant. It does not use or store any kind of user information/data. In fact, it's functionality has nothing to do with user data (personal or otherwise). So there's that. Quick usage and tips
  1. Install the plugin.
  2. The plugin is enabled by default on your WordPress Menu links, so you can start adding custom links and set their URL to the id/target you want to scroll to.
  3. Create id targets within your content using plugin's "Insert Page scroll to id target" button and/or shortcode (see contextual "Help" menu in plugin settings page) in post visual/text editor. Create targets in widgets areas using "Page scroll to id target" widget.
  4. Create links within your content using plugin's "Insert/edit Page scroll to id link" button and/or shortcode in post visual/text editor. You can also add the class ps2id on any existing link you want to be handled by the plugin.
For more info see plugin's basic tutorial

安装:

Automatic
  1. Click 'Add New' under 'Plugins' menu in WordPress.
  2. Perform a search for the term 'Page scroll to id' and in search results, click 'Install/Install Now' under plugin name.
  3. When installation is finished, click 'Activate Plugin'.
Manual
  1. Download and extract the plugin.
  2. Upload the entire page-scroll-to-id folder to /wp-content/plugins/ directory.
  3. Activate the plugin through the 'Plugins' menu in WordPress.
Configuration Configure plugin options by clicking 'Settings' under plugin name or through the 'Settings' menu in WordPress administration.

屏幕截图:

  • "Page scoll to id" settings help
  • Multiple selectors in plugin settings
  • "Page scoll to id" target widget and widget id values
  • Visual editor "Insert/edit Page scoll to id link" modal
  • Visual editor "Insert Page scoll to id target" modal
  • Gutenberg block editor "Page scoll to id target" custom block

升级注意事项:

1.7.9 Fixed various PHP 8 warnings, changed plugin shortcodes files to adhere to wp coding standards. 1.7.8 Added aria-label attribute and removed empty attributes in plugin shortcodes, fixed PHP (v8) warning (Array to string conversion), fixed issue with text formatting in plugin admin page, fixed an issue with shortcodes not working in WordPress 2022 theme, created the special class "ps2id-auto-scroll" to easily auto-scroll to a target id with this specific class on page load. 1.7.7 Changed a couple of plugin functions in order to comply with the WordPress Coding Standards. 1.7.6 Fixed various PHP notices and warnings, extended unbind unrelated click events extra/deferred script, patched vulnerability. 1.7.5 Fixed various PHP 7.4 and PHP 8 notices and warnings appearing on plugin installation, fixed minor javascript issue, Fixed PHP 5.2 and 5.3 warnings. 1.7.4 Added link-specific offset special class (ps2id-offset-NUMBER) for WordPress Menu items, extended plugin's offset selector expressions with the :sticky selector. 1.7.3 Fixed issue with target id attribute having special characters, extended "Prevent other scripts from handling plugin’s links" option with special selector option field, removed jQuery 1.x deprecated functions from plugin script, updated plugin's contextual help and notices. 1.7.2 Added an extended 'Verify target position and readjust scrolling' option (for lazy-load images, iframes etc.), added 'Force scroll type/easing' option, updated plugin's settings page, contextual help and notices. 1.7.1 Update plugin's settings page and notices. 1.7.0 Removed recommended plugins, updated plugin screenshots and readme.txt. 1.6.9 Added warning message in plugin settings when the selector option value lacks quotes, fixed Uncaught TypeError of undefined data when actual page is inside an iframe, Extended "Prevent other scripts from handling plugin’s links" option, updated help. 1.6.8 Fixed PHP notice/warning regarding contextual_help, added new option 'Encode unicode characters on links URL', added support for newer jQuery versions (3.x) and the upcoming WordPress 5.6. 1.6.7 Fixed issue with links having meta characters in URL, extended the default excluded selectors, fixed issue with TwentyTwenty theme smooth scrolling. 1.6.6 Fixed dynamic elements would not work automatically, fixed some links would not get highlighted when using full URLs. 1.6.5 Added "Page scroll to id target" block and new features for Gutenberg block editor, added exclude selectors option, added new offset options, fixed various issues and bugs. 1.6.4 Fixed a minor bug affecting the "Prevent other scripts from handling plugin's links" option. 1.6.3 Fixed a bug which was breaking page scrolling in some WordPress themes/installations in version 1.6.2, fixed a bug regarding links with URL in non-latin characters (e.g. Greek, Cyrillic etc.), better plugin version control for multisite installations, fixed PHP 7 notices/warnings. 1.6.2 Extended plugin's settings and visual editor buttons, added various new features and options, fixed some minor bugs, added support for latest jQuery. Please see changelog for a complete list of changes and new features. 1.6.1 Fixed browser's history back button for 'Scroll to location hash' option, added new options ('Enable on WordPress Menu links'), added plugin's target widget, added plugin's buttons in visual editor, extended default selectors, updated help and readme.txt. 1.6.0 Fixed some (minor) issues in admin and front-end, added new options ('Enable for all targets' and 'Delay') for 'Scroll to location hash', updated help and readme.txt. 1.5.9 Extended ps2id shortcode, added ps2id_wrap shortcode, extended offset selector expressions, updated help and readme.txt. 1.5.8 Fixed various PHP notices in debug mode, minor script optimizations. 1.5.7 Added 'Highlight by next target' option and extended ps2id shortcode for creating targets in content editor. 1.5.6 'Force single highlight' option will now highlight the first element instead of last, Extended highlight and target classes with additional ones, Added 'Keep highlight until next' and 'Disable plugin below screen-size' options, extended help, updated readme.txt. 1.5.5 Fixed contextual help links in plugin settings, define different offsets for vertical and horizontal layout, Added 'Scroll to location hash' option, updated readme.txt. 1.5.4 Fixed a minor bug in jquery.malihu.PageScroll2id-init.js, updated screenshots and readme.txt. 1.5.3 Extended Offset option, added shortcodes for link creation, updated documentation and added more external resources. 1.5.0 Dropped jQuery UI dependency, fixed bugs, added links highlighting, optimized scripts and extended documentation.

常见问题:

Is it GDPR compliant?

Please visit plugin's Knowledge Base - FAQ for up-to-date info and guides. Yes.

Why it hasn't been updated for x weeks/months?

Because it works and it already has a ton of features. The plugin has little dependency on WordPress functions so it doesn't need to be updated every time WordPress updates (that's why it works on ancient WordPress versions like 3.3).

更新日志:

1.7.9 1.7.8 1.7.7 1.7.6 1.7.5 1.7.4 1.7.3 1.7.2 1.7.1 1.7.0 1.6.9 1.6.8 1.6.7 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.2.0 1.1.0 1.0.0