[wordpress插件] Buooy Scroll To TopBuooy滚动到顶部

wordpress 插件 文章 2020-03-14 03:40 471 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Buooy Scroll To Top is a Scroll to Top that actually looks nice.

Buooy Scroll To Top是实际上看起来不错的滚动到顶部。

And its incredibly easy to use.

而且它非常易于使用。

Just activate and go!

只需激活即可!

Usage

用法

Simple

简单

Nothing!

没事!

Just activate and go!

只需激活即可!

It will automatically create a nice back to top button that will appear after your user scrolls beyond 200px.

它将自动创建一个漂亮的“返回页首”按钮,该按钮将在用户滚动到200px以上后显示。

Advanced

高级

There are a few ways to use your own image:

有几种使用自己的图像的方法:

    1. Method 1: Create a directory with the EXACT directory name of 'backtotop' in your theme root directory and place an image with the EXACT file name of 'backtotop.png' or 'backtotop.jpg' or 'backtotop.jpeg'

    2. 方法1:在主题根目录中创建目录,目录的确切名称为“ backtotop”,然后将图像文件的名称精确地指定为“ backtotop.png”或“ backtotop.jpg”或“ backtotop.jpeg”

      or 'backtotop.gif'.

      或“ backtotop.gif”。

      If you have multiple image files, the image will load in that order.

    3. 如果您有多个图像文件,则图像将按该顺序加载。

    4. Method 2: Use the filter ‘back-to-top-image’ as follows in your theme’s functions.php:

      方法2:在主题函数中使用过滤器“从顶部返回图片”,如下所示:

      if(has_filter(‘back-to-top-image’)){

      if(has_filter(‘back-to-top-image’)){

      add_filter( 'back-to-top-image', 'add_back_to_top_image' );

        add_filter('back-to-top-image','add_back_to_top_image');

      }

      }

      function add_back_to_top_image(){

      function add_back_to_top_image(){

      return URL_TO_THE_IMAGE_HERE;

       返回URL_TO_THE_IMAGE_HERE;

      }

      }

安装步骤

Uploading in WordPress Dashboard

在WordPress仪表板中上传

    1. Navigate to the ‘Add New’ in the plugins dashboard
    2. 导航至插件仪表板中的“添加新项”

    3. Navigate to the ‘Upload’ area
    4. 导航到“上传”区域

    5. Select buooy-scrolltotop.zip from your computer
    6. 从计算机中选择 buooy-scrolltotop.zip

    7. Click ‘Install Now’
    8. 点击“立即安装”

    9. Activate the plugin in the Plugin dashboard
    10. 在“插件”信息中心中激活插件

    Using FTP

    使用FTP

      1. Download buooy-scrolltotop.zip
      2. 下载 buooy-scrolltotop.zip

      3. Extract the buooy-scrolltotop directory to your computer
      4. buooy-scrolltotop 目录提取到您的计算机中

      5. Upload the buooy-scrolltotop directory to the /wp-content/plugins/ directory
      6. buooy-scrolltotop 目录上传到 / wp-content / plugins / 目录

      7. Activate the plugin in the Plugin dashboard
      8. 在“插件”信息中心中激活插件

下载地址
https://downloads.wordpress.org/plugin/buooy-scroll-to-top.1.1.0.zip
-EOF-

AI助手支持GPT4.0