# Removing previous button in content single php

**URL:** <https://colorlibsupport.com/t/removing-previous-button-in-content-single-php/7919>\
**Category:** Dazzling\
**Created:** [August 25, 2015, 5:26pm UTC](https://colorlibsupport.com/t/removing-previous-button-in-content-single-php/7919 "2015-08-25T17:26:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bunty](https://colorlibsupport.com/user_avatar/colorlibsupport.com/bunty/32/3719_2.png) [@bunty](https://colorlibsupport.com/u/bunty)\
**Post date:** [August 25, 2015, 5:26pm UTC](https://colorlibsupport.com/t/removing-previous-button-in-content-single-php/7919/1 "2015-08-25T17:26:04Z")

</div>

Hi, in dazzling theme when I click on my post it always shows a button to next post insde content-single.php.

I want remove it because I don’t want that  
Please reply how to remove it.

---

<div class="post-metadata">

**Author:** ![movin](https://colorlibsupport.com/user_avatar/colorlibsupport.com/movin/32/10922_2.png) [@movin](https://colorlibsupport.com/u/movin)\
**Post date:** [September 11, 2015, 8:42am UTC](https://colorlibsupport.com/t/removing-previous-button-in-content-single-php/7919/2 "2015-09-11T08:42:33Z")

</div>

Hi @bunty,

I hope you are well today and thank you for your question.

You can remove it by adding the following code in the functions.php file of your child theme or by using the attached child theme that contains the following code.

```auto
function dazzling_post_nav() {
	if( is_singular() ){
		return;
	}
	// Don't print empty markup if there's nowhere to navigate.
	$previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true );
	$next = get_adjacent_post( false, '', false );

	if ( ! $next && ! $previous ) {
		return;
	}
	?>
	<nav class="navigation post-navigation" role="navigation">
		<h1 class="screen-reader-text"><?php _e( 'Post navigation', 'dazzling' ); ?></h1>
		<div class="nav-links">
			<?php
				previous_post_link( '<div class="nav-previous">%link</div>', _x( '<i class="fa fa-chevron-left"></i> %title', 'Previous post link', 'dazzling' ) );
				next_post_link( '<div class="nav-next">%link</div>', _x( '%title <i class="fa fa-chevron-right"></i>', 'Next post link', 'dazzling' ) );
			?>
		</div><!-- .nav-links -->
	</nav><!-- .navigation -->
	<?php
}

```

Best Regards,  
Movin
