❤️主题来源💕
🙌本文介绍👀
在这里修改替换了密码保护相关文字、友情链接页面文字
😏代码片段介绍⌨️
替换「文章内容密码保护」
搜索词:密码保护
路径:
/www/wwwroot/域名/wp-content/themes/lolimeow-lolimeowV版本号/core/module/fun-shortcode.php
代码替换:「188行」
<div class=”alert alert-default” role=”alert”><strong>温馨提示!</strong>以下是密码保护的内容!</div>
替换「此内容受密码保护。如需查阅,请在下列字段中输入您的密码。」
搜索词:This content is password protected、esc_attr_x(、There is no excerpt because this is a protected post.、Continue reading %s、’Private: %s’、’Continue reading %s’、__( ‘
路径:
/www/wwwroot/域名/wp-includes/post-template.php
代码替换:「1809行」
$output = ‘<form action=”‘ . esc_url( site_url( ‘wp-login.php?action=postpass’, ‘login_post’ ) ) . ‘” class=”post-password-form’ . $class . ‘” method=”post”>’ . $redirect_field . $invalid_password_html . ‘<p>’ . __( ‘This content is password protected. To view it please enter your password below:’ ) . ‘</p><p><label for=”‘ . $field_id . ‘”>’ . __( ‘Password:’ ) . ‘ <input name=”post_password” id=”‘ . $field_id . ‘” type=”password” spellcheck=”false” required size=”20″‘ . $aria . ‘ /></label> <input type=”submit” name=”Submit” value=”‘ . esc_attr_x( ‘Enter’, ‘post password form’ ) . ‘” /></p></form>‘;
替换「替换文章的交互文字、导读、赞赏、点赞」
搜索词:导读、赞赏、点赞
路径:
/www/wwwroot/域名/wp-content/themes/lolimeow-lolimeowV版本号/page/template/blog-single.php
/www/wwwroot/域名/wp-content/themes/lolimeow-lolimeowV版本号/page/template/blog-page.php
代码替换:「26行」
<a href=”<?php echo esc_url(get_category_link($first_category->term_id)); ?>” title=”查看
替换「修改友情链接页面的文字」
搜索词:显示真正未分类的链接
路径:
/www/wwwroot/域名/wp-content/themes/lolimeow-lolimeowV版本号/page/p-links.php
代码替换:「84行」
// 显示真正未分类的链接
if ($truly_uncategorized) {
echo ‘<h2 class=”main-reveal”>’;
赞美/嘲讽(0)
暂无赞美/嘲讽