Moricolor主题去掉分享按钮保留功能按钮

·
Typecho 主题 文件 October 13, 2018
!本文可能 超过2年没有更新,今后内容也许不会被维护或者支持,部分内容可能具有时效性,涉及技术细节或者软件使用方面,本文不保证相应的技术更新和实践可操作性。

Moricolor-for-Typecho主题下去掉顶部分享按钮保留功能按钮
打开主题post.php文件
<?php if (!defined('TYPECHO_ROOT_DIR')) exit; ?>
<?php $this->need('header.php'); ?>

<div id="main" class="container">
    <div id="main-post" role="main" itemscope itemtype="http://schema.org/BlogPosting" style="display: none;">
        <article class="post" style="padding-top: 20px;">
            <h2 itemprop="name headline" style="font-weight: normal;"><?php $this->title() ?></h2>
            <div class="text-right">
        <?php if($GLOBALS['style_TextBar']=='1'): ?>
            <div class="text-bar">
                <a href="<?php $this->options->siteUrl(); ?>" class="fui-home"></a>
                <a id="tor_show" href="javascript:void(0)" class="fui-list-bulleted"></a>
                <a id="comment_go" href="#comments" class="fui-bubble"></a>
                <a style="font-size: 30px;margin-left: 1px;">·</a>
                <a href="https://twitter.com/intent/tweet?url=<?php $this->permalink() ?>" target="_blank" rel="nofollow" data-placement="bottom" data-toggle="tooltip" title="Twitter" class="fui-twitter"></a>
                <a href="https://www.facebook.com/sharer/sharer.php?u=<?php $this->permalink() ?>" target="_blank" rel="nofollow" data-placement="bottom" data-toggle="tooltip" title="Facebook" class="fui-facebook"></a>
                <a href="https://plus.google.com/share?url=<?php $this->permalink() ?>" target="_blank" rel="nofollow"data-placement="bottom" data-toggle="tooltip" title="Google+" class="fui-google-plus"></a>
                <a href="http://service.weibo.com/share/share.php?url=<?php $this->permalink() ?>&title=<?php $this->title() ?>" target="_blank" rel="nofollow" data-placement="bottom" data-toggle="tooltip" title="Weibo" class="fui-bookmark"></a>
            </div>

将14行至18行注释掉即可。


首次创建时间:2018-10-13 16:21:00
最后修改时间:2018-10-14 13:26:37

  • Typecho自动在新窗口中打开链接
  • 关于诸葛亮扇子的传说故事

_(:3 」∠)_
(抱歉)
自发布之日起超123天后自动关闭评论哦!


© 2025 Mr.Cui's Blog. Using Typecho & Moricolor.

鲁ICP备16004095号-2
鲁公网安备37028502250699号
HTTP/3 IPv6