【WordPress】E家分享网站设置(不定期更新中)
本文最后更新于 15 天前,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

页面背景:

图片处理

Cloudflare CDN 设置

参考:https://cloud.tencent.com/developer/article/1774198

WordPress 设置

后台设置

  • 2023-01-14,更新固定链接结构自定义结构/archives/%postname%.html。在文章模块中,使用快速编辑编辑所有文章别名,来配合固定链接。

插件

  • 标签云插件:Cool Tag Cloud
  • Google Adsense:Site Kit by Google
  • Reply for View:自建的回复可见的插件
  • UpdraftPlus:备份/恢复
  • WP Githuber MD:MarkDown输入插件
  • XML Sitemaps:SiteMap插件
  • WP Super Cache:超级缓存插件

网站特效

  • 百度统计:放置在主题页脚 footer.php 文件中 </body> 之前。添加时间:2022-05-13
<!--百度统计-->
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?71e39fd0f5218799bd4c9fc2016ee4b3";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
  • 网站添加鼠标点击烟花特效:放置在主题页脚 footer.php 文件中 </body> 之前。
<!--网站添加鼠标点击烟花特效-->
<canvas class="fireworks" style="position:fixed;left:0;top:0;z-index:99999999;pointer-events:none;"></canvas>
<script type="text/javascript" src="https://www.5iehome.cc/wp-content/themes/argon/firework.js"></script>
  • 依米花播放器:放置在主题页脚 footer.php 文件中 </body> 之前。
<!--依米花播放器-->
<script id="xplayer" src="https://music.piphp.com/Static/player/player.js" key="6280ecc0ce424" m="1"></script>
  • 网站添加看板娘:放置在主题页脚 footer.php 文件中 </body> 之前。
<!--网站添加看板娘-->
<script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>
<script>
    L2Dwidget.init({
        "model": {
            //jsonpath控制显示模型
            jsonPath: "https://imuncle.github.io/live2d/model/wanko/wanko.model.json",
        "scale": 1
        },
        "display": {
            "position": "right", //表现位置
            "width": 100,  //模型的宽度
            "height": 200, //模型的高度
            "hOffset": 220,
            "vOffset": -40
        },
        "mobile": {
            "show": true,
            "scale": 0.5
        },
        "react": {
            "opacityDefault": 0.7,
            "opacityOnHover": 0.2
        }
    });
</script>

网站加速

  • 禁用 Jquery Migrate 文件
    下面的代码添加到主题文件的 functions.php 里面,可以防止将 jQuery Migrate 脚本加载到前端,同时保持 jQuery 脚本本身完整无缺。它仍在管理员中加载,不会破坏任何内容。
//移除jQuery Migrate脚本
//https://blog.naibabiji.com/news/jin-yong-jquery-migrate-min-js.html
function dequeue_jquery_migrate( $scripts ) {
    if ( ! is_admin() && ! empty( $scripts->registered['jquery'] ) ) {
        $scripts->registered['jquery']->deps = array_diff(
            $scripts->registered['jquery']->deps,
            [ 'jquery-migrate' ]
        );
    }
}
add_action( 'wp_default_scripts', 'dequeue_jquery_migrate' );

Argon 主题设置 (2022-12-08)

{"argon_theme_color":"#3f51b5","argon_theme_color_hex_preview":"#3f51b5","argon_show_customize_theme_color_picker":false,"argon_enable_immersion_color":"true","argon_darkmode_autoswitch":"false","argon_enable_amoled_dark":"false","argon_card_radius":"15","argon_card_shadow":"default","argon_page_layout":"double-reverse","argon_article_list_waterflow":"1","argon_article_list_layout":"1","argon_font":"sans-serif","argon_assets_path":"sourcegcdn","argon_custom_assets_path":"","argon_wp_path":"/","argon_dateformat":"YMD","argon_enable_headroom":"false","argon_toolbar_title":"--hidden--","argon_toolbar_icon":"","argon_toolbar_icon_link":"","argon_toolbar_blur":"false","argon_banner_title":"E 家 分 享","argon_banner_subtitle":"分享实用网站及软件技巧","argon_banner_size":"mini","argon_page_background_banner_style":"transparent","argon_show_toolbar_mask":false,"argon_banner_background_url":"--bing--","argon_banner_background_color_type":"shape-default","argon_banner_background_hide_shapes":true,"argon_enable_banner_title_typing_effect":"false","argon_banner_typing_effect_interval":"100","argon_page_background_url":"https://i.postimg.cc/sXgCZY52/wp.webp","argon_page_background_dark_url":"","argon_page_background_opacity":"1","argon_sidebar_banner_title":"","argon_sidebar_banner_subtitle":"有事做有所期待,日子就是幸福的。","argon_sidebar_auther_name":"E家之长","argon_sidebar_auther_image":"https://www.5iehome.cc/wp-content/uploads/5iehome.cc-头像-500x500-1.jpg","argon_sidebar_author_description":"","argon_sidebar_announcement":"","argon_fab_show_settings_button":"true","argon_fab_show_darkmode_button":"false","argon_fab_show_gotocomment_button":"true","argon_seo_description":"E 家 分 享 - 分享生活,分享快乐!","argon_seo_keywords":"E家分享,5iehome.cc,我爱E家,E家论坛,LSSTUDIO","argon_article_meta":"author|time|views|categories","argon_show_readingtime":"false","argon_reading_speed":"300","argon_reading_speed_en":"160","argon_reading_speed_code":"20","argon_show_thumbnail_in_banner_in_content_page":"true","argon_first_image_as_thumbnail_by_default":"true","argon_reference_list_title":"参考","argon_show_sharebtn":"true","argon_show_headindex_number":"true","argon_donate_qrcode_url":"","argon_additional_content_after_post":"<i class=\"fa fa-user\"></i> 版权归属: %author%\n<i class=\"fa fa-link\"></i> 本文链接: %link%\n<i class=\"fa fa-share-alt\"></i> 许可协议: 本文使用《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》协议授权","argon_related_post":"category,tag","argon_related_post_sort_orderby":"date","argon_related_post_sort_order":"DESC","argon_related_post_limit":"10","argon_article_header_style":"article-header-style-2","argon_outdated_info_time_type":"modifiedtime","argon_outdated_info_days":"1","argon_outdated_info_tip_type":"inpost","argon_outdated_info_tip_content":"本文最后更新于 %date_delta% 天前,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。","argon_archives_timeline_show_month":"true","argon_archives_timeline_url":"https://www.5iehome.cc/archive","argon_footer_html":"Copyright ©2022 版权所有 E家分享\n\n<span id=\"momk\"></span><span id=\"momk\" style=\"color: #ff0000;\"></span>\n<script type=\"text/javascript\">\nfunction NewDate(str) {\nstr = str.split('-');\nvar date = new Date();\ndate.setUTCFullYear(str[0], str[1] - 1, str[2]);\ndate.setUTCHours(0, 0, 0, 0);\nreturn date;\n}\nfunction momxc() {\nvar birthDay =NewDate(\"2020-3-12\");\nvar today=new Date();\nvar timeold=today.getTime()-birthDay.getTime();\nvar sectimeold=timeold/1000\nvar secondsold=Math.floor(sectimeold);\nvar msPerDay=24*60*60*1000; var e_daysold=timeold/msPerDay;\nvar daysold=Math.floor(e_daysold);\nvar e_hrsold=(daysold-e_daysold)*-24;\nvar hrsold=Math.floor(e_hrsold);\nvar e_minsold=(hrsold-e_hrsold)*-60;\nvar minsold=Math.floor((hrsold-e_hrsold)*-60); var seconds=Math.floor((minsold-e_minsold)*-60).toString();\ndocument.getElementById(\"momk\").innerHTML = \"本站已运行 \"+daysold+\" 天 \"+hrsold+\" 小时 \"+minsold+\" 分 \"+seconds+\" 秒\";\nsetTimeout(momxc, 1000);\n}momxc();\n</script>","argon_enable_code_highlight":"true","argon_code_theme":"tomorrow-night-blue","argon_code_highlight_hide_linenumber":"false","argon_code_highlight_break_line":"true","argon_code_highlight_transparent_linenumber":"false","argon_math_render":"none","argon_mathjax_cdn_url":"//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js","argon_mathjax_v2_cdn_url":"//cdn.jsdelivr.net/npm/mathjax@2.7.5/MathJax.js?config=TeX-AMS_HTML","argon_katex_cdn_url":"//cdn.jsdelivr.net/npm/katex@0.11.1/dist/","argon_enable_lazyload":"true","argon_lazyload_threshold":"800","argon_lazyload_effect":"fadeIn","argon_lazyload_loading_style":"6","argon_enable_fancybox":"true","argon_enable_zoomify":"false","argon_zoomify_duration":"200","argon_zoomify_easing":"cubic-bezier(0.4,0,0,1)","argon_zoomify_scale":"0.9","argon_enable_pangu":"false","argon_custom_html_head":"","argon_custom_html_foot":"","argon_enable_smoothscroll_type":"disabled","argon_enable_into_article_animation":"false","argon_disable_pjax_animation":"true","argon_comment_pagination_type":"feed","argon_comment_emotion_keyboard":"false","argon_hide_name_email_site_input":"false","argon_comment_need_captcha":"false","argon_get_captcha_by_ajax":"false","argon_comment_allow_markdown":"true","argon_comment_allow_editing":"true","argon_comment_allow_privatemode":"false","argon_comment_allow_mailnotice":"false","argon_comment_mailnotice_checkbox_checked":false,"argon_comment_enable_qq_avatar":"false","argon_comment_avatar_vcenter":"false","argon_who_can_visit_comment_edit_history":"admin","argon_enable_comment_pinning":"true","argon_enable_comment_upvote":"true","argon_comment_ua":"platform,browser,version","argon_show_comment_parent_info":"true","argon_fold_long_comments":"true","argon_gravatar_cdn":"gravatar.pho.ink/avatar/","argon_text_gravatar":"false","argon_enable_search_filters":"true","argon_search_filters_type":"*post,*page","argon_pjax_disabled":"false","argon_hide_categories":"","argon_enable_login_css":"true","argon_home_show_shuoshuo":"false","argon_fold_long_shuoshuo":"false","argon_enable_timezone_fix":"false","argon_hide_shortcode_in_preview":"true","argon_trim_words_count":"150","argon_enable_mobile_scale":"false","argon_disable_googlefont":"false","argon_disable_codeblock_style":"false","argon_update_source":"github","argon_hide_footer_author":"true"}

Argon 主题设置 (2022-12-10)

{"argon_theme_color":"#3f51b5","argon_theme_color_hex_preview":"#3f51b5","argon_show_customize_theme_color_picker":false,"argon_enable_immersion_color":"true","argon_darkmode_autoswitch":"false","argon_enable_amoled_dark":"false","argon_card_radius":"15","argon_card_shadow":"default","argon_page_layout":"double-reverse","argon_article_list_waterflow":"1","argon_article_list_layout":"1","argon_font":"sans-serif","argon_assets_path":"sourcegcdn","argon_custom_assets_path":"","argon_wp_path":"/","argon_dateformat":"YMD","argon_enable_headroom":"false","argon_toolbar_title":"--hidden--","argon_toolbar_icon":"","argon_toolbar_icon_link":"","argon_toolbar_blur":"false","argon_banner_title":"E 家 分 享","argon_banner_subtitle":"分享实用网站及软件技巧","argon_banner_size":"full","argon_page_background_banner_style":"transparent","argon_show_toolbar_mask":false,"argon_banner_background_url":"--bing--","argon_banner_background_color_type":"shape-default","argon_banner_background_hide_shapes":true,"argon_enable_banner_title_typing_effect":"false","argon_banner_typing_effect_interval":"100","argon_page_background_url":"https://alpha-q3.sourcegcdn.com/2022/12/10/NbU0vZo5.webp","argon_page_background_dark_url":"","argon_page_background_opacity":"1","argon_sidebar_banner_title":"","argon_sidebar_banner_subtitle":"有事做有所期待,日子就是幸福的。","argon_sidebar_auther_name":"E家之长","argon_sidebar_auther_image":"https://www.5iehome.cc/wp-content/uploads/5iehome.cc-头像-500x500-1.jpg","argon_sidebar_author_description":"","argon_sidebar_announcement":"","argon_fab_show_settings_button":"true","argon_fab_show_darkmode_button":"false","argon_fab_show_gotocomment_button":"true","argon_seo_description":"E 家 分 享 - 分享生活,分享快乐!","argon_seo_keywords":"E家分享,5iehome.cc,我爱E家,E家论坛,LSSTUDIO","argon_article_meta":"author|time|views|categories","argon_show_readingtime":"false","argon_reading_speed":"300","argon_reading_speed_en":"160","argon_reading_speed_code":"20","argon_show_thumbnail_in_banner_in_content_page":"true","argon_first_image_as_thumbnail_by_default":"true","argon_reference_list_title":"参考","argon_show_sharebtn":"true","argon_show_headindex_number":"true","argon_donate_qrcode_url":"","argon_additional_content_after_post":"<i class=\"fa fa-user\"></i> 版权归属: %author%\n<i class=\"fa fa-link\"></i> 本文链接: %link%\n<i class=\"fa fa-share-alt\"></i> 许可协议: 本文使用《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》协议授权","argon_related_post":"category,tag","argon_related_post_sort_orderby":"date","argon_related_post_sort_order":"DESC","argon_related_post_limit":"10","argon_article_header_style":"article-header-style-2","argon_outdated_info_time_type":"modifiedtime","argon_outdated_info_days":"1","argon_outdated_info_tip_type":"inpost","argon_outdated_info_tip_content":"本文最后更新于 %date_delta% 天前,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。","argon_archives_timeline_show_month":"true","argon_archives_timeline_url":"https://www.5iehome.cc/archive","argon_footer_html":"Copyright ©2022 版权所有 E家分享\n\n<span id=\"momk\"></span><span id=\"momk\" style=\"color: #ff0000;\"></span>\n<script type=\"text/javascript\">\nfunction NewDate(str) {\nstr = str.split('-');\nvar date = new Date();\ndate.setUTCFullYear(str[0], str[1] - 1, str[2]);\ndate.setUTCHours(0, 0, 0, 0);\nreturn date;\n}\nfunction momxc() {\nvar birthDay =NewDate(\"2020-3-12\");\nvar today=new Date();\nvar timeold=today.getTime()-birthDay.getTime();\nvar sectimeold=timeold/1000\nvar secondsold=Math.floor(sectimeold);\nvar msPerDay=24*60*60*1000; var e_daysold=timeold/msPerDay;\nvar daysold=Math.floor(e_daysold);\nvar e_hrsold=(daysold-e_daysold)*-24;\nvar hrsold=Math.floor(e_hrsold);\nvar e_minsold=(hrsold-e_hrsold)*-60;\nvar minsold=Math.floor((hrsold-e_hrsold)*-60); var seconds=Math.floor((minsold-e_minsold)*-60).toString();\ndocument.getElementById(\"momk\").innerHTML = \"本站已运行 \"+daysold+\" 天 \"+hrsold+\" 小时 \"+minsold+\" 分 \"+seconds+\" 秒\";\nsetTimeout(momxc, 1000);\n}momxc();\n</script>","argon_enable_code_highlight":"true","argon_code_theme":"tomorrow-night-blue","argon_code_highlight_hide_linenumber":"false","argon_code_highlight_break_line":"true","argon_code_highlight_transparent_linenumber":"false","argon_math_render":"none","argon_mathjax_cdn_url":"//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js","argon_mathjax_v2_cdn_url":"//cdn.jsdelivr.net/npm/mathjax@2.7.5/MathJax.js?config=TeX-AMS_HTML","argon_katex_cdn_url":"//cdn.jsdelivr.net/npm/katex@0.11.1/dist/","argon_enable_lazyload":"true","argon_lazyload_threshold":"800","argon_lazyload_effect":"fadeIn","argon_lazyload_loading_style":"6","argon_enable_fancybox":"true","argon_enable_zoomify":"false","argon_zoomify_duration":"200","argon_zoomify_easing":"cubic-bezier(0.4,0,0,1)","argon_zoomify_scale":"0.9","argon_enable_pangu":"false","argon_custom_html_head":"","argon_custom_html_foot":"","argon_enable_smoothscroll_type":"disabled","argon_enable_into_article_animation":"false","argon_disable_pjax_animation":"true","argon_comment_pagination_type":"feed","argon_comment_emotion_keyboard":"false","argon_hide_name_email_site_input":"false","argon_comment_need_captcha":"false","argon_get_captcha_by_ajax":"false","argon_comment_allow_markdown":"true","argon_comment_allow_editing":"true","argon_comment_allow_privatemode":"false","argon_comment_allow_mailnotice":"false","argon_comment_mailnotice_checkbox_checked":false,"argon_comment_enable_qq_avatar":"false","argon_comment_avatar_vcenter":"false","argon_who_can_visit_comment_edit_history":"admin","argon_enable_comment_pinning":"true","argon_enable_comment_upvote":"true","argon_comment_ua":"platform,browser,version","argon_show_comment_parent_info":"true","argon_fold_long_comments":"true","argon_gravatar_cdn":"gravatar.pho.ink/avatar/","argon_text_gravatar":"false","argon_enable_search_filters":"true","argon_search_filters_type":"*post,*page","argon_pjax_disabled":"false","argon_hide_categories":"","argon_enable_login_css":"true","argon_home_show_shuoshuo":"false","argon_fold_long_shuoshuo":"false","argon_enable_timezone_fix":"false","argon_hide_shortcode_in_preview":"true","argon_trim_words_count":"150","argon_enable_mobile_scale":"false","argon_disable_googlefont":"false","argon_disable_codeblock_style":"false","argon_update_source":"github","argon_hide_footer_author":"true"}
版权归属: E家之长
本文链接: https://www.5iehome.cc/archives/5iehomecc-website-setting.html
许可协议: 本文使用《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》协议授权
暂无评论

发送评论 编辑评论


				
上一篇
下一篇