• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Remove Page From Sitemap in Genesis

This code enables you to exclude any single page or pages from displaying in the sitemap.

The sitemap is generated when you create a new page and select the archive option from the drop down menu in the Page Attributes meta box located on the Edit Page screen as seen in the following image:

page-attributes

Why Hide Pages?

You might have a special download page for a eBook or after sign up page which you want to hide from your site visitors so they need to sign up before accessing protected downloads and content.

Here’s the code for members who can simply paste at the end of your functions file and swap out the page i.d with your own.

Register for full access

Related Tutorials

  • Modify The Genesis Sitemap

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems