不是我说,这主题真是绝了。。。

基本上 1 星期 1 更新(之前更绝,差不多 1 星期 3 更新)

然后对主题做的修改就全没了。。。

这也就算了。。。每个文章下面还自带那个啥相关文章,结果在我博客里不管什么文章显示的相关文章都是最新的 3 篇文章。。。而且文章还是全篇显示,并不是现实的摘要。。。而且还没有关掉这个功能的地方。。。

于是我们找到主题的 single.php,找到:

<?php
if ( ! is_singular( 'elementor_library' ) ) {
    do_action( 'hestia_blog_related_posts' );
}
?>

注释掉:

<!--?php
if ( ! is_singular( 'elementor_library' ) ) {
    do_action( 'hestia_blog_related_posts' );
}
?-->

然后还有一个令人很不爽的地方:底部会显示一个链接到它主题首页的链接和一个 WordPress 的链接。。。这都没关系是吧,毕竟免费用你的主题。。。

但是你好歹也给我个功能显示一下我自己的博客的版权标识吧。。。

没有也就算了。。。我就自己改代码加上呗。。。

然后找了半天。。。Woc 它藏得有多深啊。。。根本找不到。。。

直接 grep,发现藏在主题目录的 inc/views/main/class-hestia-footer.php 里的 bottom_footer_content()函数里。。。

哇好感动哇,你藏这么深就是故意不给人找到删掉吧?嘿嘿嘿我偏要删掉你个 sb。。。

bottom_footer_content()里的:

$hestia_general_credits = get_theme_mod(
    'hestia_general_credits',
    sprintf(
        /* translators: %1$s is Theme Name, %2$s is WordPress */
        esc_html__( '%1$s | Powered by %2$s', 'hestia' ),
        sprintf(
            /* translators: %s is Theme name */
            '<a href="https://themeisle.com/themes/hestia/" target="_blank" rel="nofollow">%s</a>',
            esc_html__( 'Hestia', 'hestia' )
        ),
        /* translators: %1$s is URL, %2$s is WordPress */
        sprintf(
            '<a href="%1$s" rel="nofollow">%2$s</a>',
            esc_url( __( 'http://wordpress.org', 'hestia' ) ),
            esc_html__( 'WordPress', 'hestia' )
        )
    )
);

改成:

$hestia_general_credits = get_theme_mod(
    'hestia_general_credits',
    sprintf(
        esc_html( 'Copyright © %1$s, %2$s.'),
        esc_html( date( 'Y' ) ),
        esc_html( get_bloginfo( 'name' ) )
    )
);

完美。。。

也不知道为啥这主题要不停地更新,那么频繁。。。可能就是让你没法去掉这些链接好给它增加外链数吧。。。哼╭(╯^╰)╮

分类: 文章

XZYQvQ

炒鸡辣鸡的制杖蒟蒻一枚QvQ

1 条评论

NULL · 2022年6月12日 2:00 下午

大佬 我目前在使用此博客模板 我感觉它首页的图片太大了 我想调尺寸 我应该怎么去找呢

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用*标注