New Topic

Reply To: When viewing a single post page, make the title not a link but just text

Home › Forum › Customization › When viewing a single post page, make the title not a link but just text › Reply To: When viewing a single post page, make the title not a link but just text

#1852

cochi
Participant

I fixed it. For everybody who will want to do it:
On the child theme modify the entry.php file:
Replace
<?php if ( is_singular() ) {echo '<h1 class="entry-title">';} else {echo '<h2 class="entry-title">';} ?><a href="<?php the_permalink(); ?>" title="<?php printf( __('Read %s', 'startup'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a><?php if ( is_singular() ) {echo '</h1>';} else {echo '</h2>';} ?>
with
<?php if ( is_singular() ) { echo '<h1 class="entry-title">'; } else { echo '<h2 class="entry-title">'; } ?><?php the_title(); ?><?php if ( is_singular() ) { echo '</h1>'; } else { echo '</h2>'; } ?> <?php edit_post_link(); ?>