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

E家分享网站设置

页面背景:

图片处理

Cloudflare CDN 设置

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

Cloudflare-CDN-设置

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' );

额外 CSS 设置(2023-10-07)

/*设置网站字体*/
@font-face {
    font-family: 'LXGW WenKai Screen';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
/*src: url('https://fastly.jsdelivr.net/npm/[email protected]/lxgwwenkailite-light.css')*/
 src: url('https://npm.elemecdn.com/[email protected]/style.css')
    format('woff2')
}

body {
    font-family: 'LXGW WenKai Screen', sans-serif; !important
}

/*横幅字体大小*/
.banner-title {
    font-size: 3.0em;
}

.banner-subtitle {
    font-size: 30px;
}

/*文章标题字体大小*/
.post-title {
    font-size: 30px
}

/*正文字体大小(不包含代码)*/
.post-content p {
    font-size: 1.25rem;
}

li {
    font-size: 1.2rem;
}

/*正文图片居中显示*/
.fancybox-wrapper {
    margin: auto;
}

/*顶栏菜单放大*/
/*这里也可以设置刚刚我们设置的btfFont字体*/
.navbar-nav .nav-link {
    font-size: 1rem;
    font-family: 'LXGW WenKai Screen';
}

.navbar-brand {
    font-family: 'Noto Serif SC',serif;
    font-size: 1.25rem;
    margin-right: 2rem;
    padding-bottom: .2rem;
}

.nav-link-inner--text {
    font-size: 1.1rem;
}

.navbar-nav .nav-item {
    margin-right: 0;
}

.mr-lg-5, .mx-lg-5 {
    margin-right: 1rem !important;
}

.navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.9rem;
    padding-left: 1rem;
}

/*========透明设置===========*/

/*白天卡片背景透明*/
.card {
    background-color: rgba(255, 255, 255, 0.8) !important;
    /*backdrop-filter:blur(6px);*//*毛玻璃效果主要属性*/
    -webkit-backdrop-filter: blur(6px);
}

/*小工具栏背景完全透明*/
/*小工具栏是card的子元素,如果用同一个透明度会叠加变色,故改为完全透明*/
.card .widget,.darkmode .card .widget,#post_content > div > div > div.argon-timeline-card.card.bg-gradient-secondary.archive-timeline-title {
    background-color: #ffffff00 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.emotion-keyboard,#fabtn_blog_settings_popup {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/*分类卡片透明*/
.bg-gradient-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/*夜间透明*/
html.darkmode.bg-white,html.darkmode .card,html.darkmode #footer {
    background: rgba(66, 66, 66, 0.9) !important;
}

html.darkmode #fabtn_blog_settings_popup {
    background: rgba(66, 66, 66, 0.95) !important;
}

/*========颜色设置===========*/

/*文章或页面的正文颜色*/
body {
    color: #364863
}

/*引文属性设置*/
blockquote {
   /*添加弱主题色为背景色*/
    background: rgba(var(--themecolor-rgbstr), 0.1) !important;
    width: 100%
}

/*引文颜色 建议用主题色*/
:root {
   /*也可以用类似于--color-border-on-foreground-deeper: #009688;这样的命令*/
    --color-border-on-foreground-deeper: rgba(var(--themecolor-rgbstr));
}

/*左侧菜单栏突出颜色修改*/
.leftbar-menu-item > a:hover, .leftbar-menu-item.current > a {
    background-color: #f9f9f980;
}

/*站点概览分隔线颜色修改*/
.site-state-item {
    border-left: 1px solid #aaa;
}

.site-friend-links-title {
    border-top: 1px dotted #aaa;
}

#leftbar_tab_tools ul li {
    padding-top: 3px;
    padding-bottom: 3px;
    border-bottom: none;
}

html.darkmode #leftbar_tab_tools ul li {
    border-bottom: none;
}

/*左侧栏搜索框的颜色*/
button#leftbar_search_container {
    background-color: transparent;
}

/*========鼠标样式设置===========*/

/** 普通指针样式**/ 
body {
cursor:url('data:image/x-icon;base64,AAACAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAKjwAAAA6wAAs/8AFnFzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEREREAAAAAEREREQAAAAARERERAAAAABEREREAAAAAABEREQAAAAAREREAAAAAAAAREREAAAAAERERAAAAAAAAAAiIiIAACIiIgAAAAAAAAAAIiIiAAAiIiIAAAAAAAARESIiIiIiIiIiEREAAAAAEREiIiIiIiIiIhERAAAAABERESIiIiIiIhEREQAAAAAREREiIiIiIiIREREAAAAAERFEIhEiIhEiRBERAAAAABETRCIRIiIRIkQREQAAAABEREREIiIiIkREREQAAAAARERERCIiIiJEREREAAAAAABEREQiREQiREREAAAAAAAAREREIkREIkRERAAAAAAAAABERCJEREQAAAAAAAAAAAAAREQiREREAAAAAAAAAAAAAAARERERERERAAAAAAAAAAAAEREREREREQAAAAAAAABERBERERFEREREAAAAAAAAREQRERERRERERAAAAAAAAEQRREQRERFEERERAAAAAABEEUREERERRBEREQAAAAAARBFEERERRBEREQAAAAAAAEQRRBEREUQREREAAAAAAAAAREREERFEEQAAAAAAIAAAAERERBERRBEAAAAAACIAAAAiIiIiIiIiIiIAAAAiIAAAIiIiIiIiIiIiAAAAIiIAAAAiIiIiIgAAAAAAACIiIAAAIiIiIiIAAAAAAADwD/AP8A/wD/wP8D/8D/A//wPA//8DwP/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/wAAD/8AAA//wAP//8AD///wAD//8AA//wAAD/8AAA//AAAD/wAAA/8AAA//AAAP/8AA/9/AAP/PwAAPx8AAD8PwA//B8AP/w=='), default;
}

/** 链接指针样式**/ 
a:hover{
cursor:url('data:image/x-icon;base64,AAACAAEAICAQAAEABQDoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAAAIAAAAAAAAAAAAAEAAAAAAAAACwsLAAAAAAAFRUVAD6+voAxMTEANbW1gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERIiEREREREREREREREREREiAiERERERERERERERERERIAACEREREREREREREiIiEiAAACEREREREREREiIAACIgBUACERERERERESIAAAAAIFNVQCERERERERIABEVUAAJTMzVSEREREREgAFUzNVAAMzMzMhERERESIFUzMzM1UAMzMzUhERERIgQzADMzMzMFMzMzIREREgADMiAzMzMzNAUzMzIRERIAMyIEMzMzMzMCMzNSERESAzISQzMzMzMzUFMzIREREjMhElMzMyMzMzQjMiEREREiESUzMyIzNTMyEiIRERERERIjMzIjMyMzMhIREREREREgMzMzMzIzMzIRERERERESAzMzMzMiMyMyERERERESIjMzUjMzMzIzIRERERERJFMzNSAzMzMiMyERERERESQzM1JDMzAzMzAhEREREREjMzMhIzMjMzMyEREREREREjMyERIiM1I1IREREREREREiIRERESIhIhERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERH//////////////////8f///+D////gf//wQD//wAAf/4AAD/8AAAf+AAAH/AAAA/gAAAPwAAAB8AAAAfBAAAPwwAAD+YAAR/8AAF/+AAB//AAAf/AAAP/gAAD/4AAA/+AgAf/wcAP/+P4n////////////////////////////w=='), pointer;
}
/** 
自定义鼠标地址:https://www.cursor.cc/
https://cdn.jsdelivr.net/gh/5iehomecc/wpblog@master/mouse/Arrow.cur https://cdn.jsdelivr.net/gh/5iehomecc/wpblog@master/mouse/Hand.cur
**/

Argon 主题设置 (2024-05-19)

{"argon_theme_color":"#009688","argon_theme_color_hex_preview":"#009688","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":"2","argon_font":"sans-serif","argon_assets_path":"custom","argon_custom_assets_path":"https://cdn.amoe.cc/web-static/public/wordpress-argon-theme/latest/","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":"fullscreen","argon_page_background_banner_style":"transparent","argon_show_toolbar_mask":true,"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":"150","argon_page_background_url":"https://cdnjson.com/images/2023/11/01/wallpaper-01.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_logo.webp","argon_sidebar_author_description":"分享生活,分享快乐!","argon_sidebar_announcement":"","argon_fab_show_settings_button":"false","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":"https://5iehome.cc/5iehome_cc_donate.webp","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/archives","argon_footer_html":"Copyright © 2020 - 2024  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/[email protected]/MathJax.js?config=TeX-AMS_HTML","argon_katex_cdn_url":"//cdn.jsdelivr.net/npm/[email protected]/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":"1","argon_enable_into_article_animation":"false","argon_disable_pjax_animation":"true","argon_comment_pagination_type":"page","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.kuibu.net/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":"100","argon_enable_mobile_scale":"false","argon_disable_googlefont":"true","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)》协议授权
暂无评论

发送评论 编辑评论


				
上一篇
下一篇