0

Ok so I am trying to add a div read more button but it's not working, and I'm not sure how to go about this.

here is the code I am trying to use.

<?php the_content('<a href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'wpbx'), the_title_attribute('echo=0') ) ?>" rel="bookmark"><div class="readmore"></div></a>') ?>

here is the css

.readmore{
  width:136px;
  height:34px;
  background: url('http://ericavain.com/wp-content/uploads/2013/04/READ1.png') no-repeat;
}
.readmore:hover{
  width:136px;
  height:34px;
  background: url('http://ericavain.com/wp-content/uploads/2013/04/read2.png') no-repeat;
}

How do i get this accomplished

4

1 回答 1

0

也许您正在尝试在 Pages 上使用“阅读更多”?如果是这种情况,请尝试在您的页面中添加类似这样的内容:

<?php  // let's enable more link on pages...
        global $more;
        $more = 0;
        ?>
            <?php the_content(); ?>
于 2013-04-04T21:48:57.613 回答