Skip to content

Raz Rassel

  • Home
  • About Raz
  • Contact Raz
  • Buy Now
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

    Remove Images from WooCommerce pages

    Read More Remove Images from WooCommerce pagesContinue

  • Wordpress

    Google Tag Manager in Genesis Theme

    Read More Google Tag Manager in Genesis ThemeContinue

  • Wordpress

    WordPress Website Setup

    Read More WordPress Website SetupContinue

  • Web Dev | Wordpress

    Show excerpt on Woocommerce archive list

    Read More Show excerpt on Woocommerce archive listContinue

  • event espresso screenshot
    Web Dev | Wordpress

    Create an Event Espresso Event

    Read More Create an Event Espresso EventContinue

  • Web Dev | Wordpress

    Woocommerce Widget Featured Product by Category

    Read More Woocommerce Widget Featured Product by CategoryContinue

YouTube Spotify
  • Home
  • About Raz
  • Contact Raz
  • Buy Now

© 2026 Raz Rassel

Scroll to top
  • Home
  • About Raz
  • Contact Raz
  • Buy Now