Skip to content

Raz Rassel

  • Home
  • About Raz
  • Contact Raz
YouTube Spotify
Raz Rassel
Wordpress

Add robots meta tag to specific page

This method is for the Genesis framework, applied in the functions.php file

// Add Robots Meta
add_action( 'genesis_meta', 'raz_robots_meta_tag' );
function raz_robots_meta_tag() {
   if ( is_page('page title')) {  
       echo '<meta name="robots" content="noindex,nofollow">';
   }
}

 

Post navigation

Previous Previous
Repsonsive Video embed
NextContinue
Disable Cache while Chrome Developer Tools is open

Similar Posts

Web Dev | Wordpress

Genesis Featured Image on top

Read More Genesis Featured Image on topContinue

Web Dev | Wordpress

Contact Form 7 in Google Tag Manager

Read More Contact Form 7 in Google Tag ManagerContinue

Wordpress

WordPress Website Setup

Read More WordPress Website SetupContinue

Web Dev | Wordpress

Genesis archive change H1 to H2

Read More Genesis archive change H1 to H2Continue

Wordpress

WordPress Disable Password Change Nofitication

Read More WordPress Disable Password Change NofiticationContinue

Wordpress

Genesis add title to Blog page

Read More Genesis add title to Blog pageContinue

YouTube Spotify
  • Home
  • About Raz
  • Contact Raz

© 2025 Raz Rassel

Scroll to top
  • Home
  • About Raz
  • Contact Raz