• I have an if statement that brings up specific versions of a header and the sidebar for pages, and it works great for the parent and child pages, but once you hit the grandchild pages it disappears. How would I specify an unlimited depth in the statement?

    Here’s a sample of the code:

    <?php } else if ( is_page('360') || is_child_page_of('360') ) { ?>  
    
    		<div class="product_head">
    			HEADER STUFF
    		</div>
    
    <?php } else if ( is_page('363') || is_child_page_of('363') ) { ?>

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘if statement with child pages, and grandchild pages?’ is closed to new replies.