[inlosc_ls_infobox]下载文章下面的附件[/inlosc_ls_infobox]
第一步:将附件中的 simple-local-avatars.js 复制到当前主题的 js 目录。
第二步,打开附件 simple-local-avatars.php 文件,将大约第178行的:
wp_enqueue_script( 'simple-local-avatars', plugins_url( '', __FILE__ ) . '/simple-local-avatars' . $script_name_append . '.js', array('jquery'), false, true );
将中间的js路径改为你的 simple-local-avatars.js
的存放路径!
第三步,打开当前主题的 functions.php 模板文件,在最后添加:
require get_template_directory() . '/inc/simple-local-avatars.php';
主题把代码的路径改为simple-local-avatars.php
的存放路径!
最后大功告成!
[inlosc_lg_title]附件下载:[/inlosc_lg_title]
[inlosc_dl title="附件下载" href="https://pan.baidu.com/s/1cEpbQ2"]点击下载[/inlosc_dl]
广东省深圳市 1F
不是吧,我也去试试