Also – regarding the custom PHP page:
I am trying to hide the sidebar and I thought that I would be able to
So, at the bottom of the script (404 template) there is this line which if I comment out removes the sidebar – just want to make sure that that’s the best approach to remove the sidebar?
<?php
/**
* generate_after_primary_content_area hook.
*
* @since 2.0
*/
do_action( 'generate_after_primary_content_area' );
generate_construct_sidebars();
get_footer();
//generate_construct_sidebars();
I tried it and it works (i.e. removes sidebar) but want to make sure I did it correctly – thanks