Wordpress"阅读更多"按钮

Joe*_*han 0 html css php wordpress

我正在使用My Wordpress博客.

    the_excerpt(); & 
<a href="<?php the_permalink(); ?>">Read more</a> 
Run Code Online (Sandbox Code Playgroud)

如果我给Wordpress标准可以添加像"阅读更多"这样的摘录帖子.我的代码看起来像这样:

<a href="<?php the_permalink() ?>
   "rel="bookmark" title="Read more on 
   <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
Run Code Online (Sandbox Code Playgroud)

我的问题是我如何添加一个图标来阅读更多?有没有插件?或者我们可以手动添加吗?请帮我找到解决方案.

McN*_*Nab 5

你会像这样在链接中添加一个类;

 <a class="readmore" href="<?php the_permalink() ?>" rel="bookmark" title="Read more on <?php the_title_attribute(); ?>"></a>
Run Code Online (Sandbox Code Playgroud)

然后你会使用CSS将你的图标应用到那个类中;

a.readmore {
width: 20px;
height: 20px
display: block;
background: url(../images/myicon.png) no-repeat 0 0;
}
Run Code Online (Sandbox Code Playgroud)

这些是示例,您可以根据相对于样式表的位置更改图像文件夹的URL路径,然后上传图标.

希望这可以帮助.