首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在此Wordpress主题编辑“阅读更多”选项

无法在此Wordpress主题编辑“阅读更多”选项
EN

Stack Overflow用户
提问于 2013-01-18 01:59:33
回答 2查看 670关注 0票数 0

我有这个主题,当我想使用“插入更多标签”添加“阅读更多”选项时,主题会在下面添加一个阅读更多图标。我想做的是:删除“阅读更多”图标,并在文本末尾显示“阅读更多”(而不是在文本下方--这很重要)。请查看下面的视觉说明。

提前感谢你的帮助。我真的很感激。

(附注:我几乎不知道如何编辑html文件,如果根本不知道的话。)

可视化说明--> http://bit.ly/V8fU8k

主题--> http://bit.ly/13I3x7U

EN

回答 2

Stack Overflow用户

发布于 2013-01-18 03:16:49

代码语言:javascript
复制
    you can change the Read More option in loop.php file in your theme folder

    Remove this code

    <?php if (option::get('display_readmore') == 'on') { ?><span class="readmore"><a href="<?php the_permalink() ?>"><?php _e('Read more', 'wpzoom'); ?></a></span><?php } ?>

   find

   <?php if (option::get('display_content') == 'Full Content') {  the_content(''); } else { the_excerpt(); } ?>

and add code after this

<a href="<?php the_permalink() ?>"><?php _e('Read more', 'wpzoom'); ?></a>
票数 0
EN

Stack Overflow用户

发布于 2013-01-19 00:45:16

代码语言:javascript
复制
Please replace in loop.php file in your theme

<?php if (option::get('display_content') == 'Full Content') {  echo get_the_content(''); } else { echo get_the_excerpt(); } ?>

to 

<?php if (option::get('display_content') == 'Full Content') {  echo get_the_content(''); } else { echo get_the_excerpt(); } ?>
<a href="<?php the_permalink() ?>"><?php _e('Read more'); ?></a>

This will help you to put read more near end of the post.
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14385242

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档