Read More Button Customization
-
Hello friend i want to display map if “Read More” button is not shown in any post and if “Read More” button shown in a post then map should be shown when user click on “Read More” button.
here is blog link: https://hensler.ca/
and the code for display “Read More” button is:<?php the_content( __( ‘Read More’,’intergalactic’ ) );?>
<?php if (strpos( $post->post_content,'<!–more–>’ ) ) : ?>
” rel=”bookmark”>
<?php
printf(__( ‘Read more %s’, ‘intergalactic’ ),the_title( ‘<span class=”screen-reader-text”>”‘, ‘”</span>’, false )); ?>
<?php endif; ?>
</div><!– .entry-content –><?php else : ?>
<div class=”entry-summary”>
<?php the_content(); ?>
” rel=”bookmark”>
<?php
printf(__( ‘Read more %s’, ‘intergalactic’ ),the_title( ‘<span class=”screen-reader-text”>”‘, ‘”</span>’, false )); ?>
</div><!– .entry-summary –>
- The topic ‘Read More Button Customization’ is closed to new replies.