Can I just delete "get_sidebar" to remove sidebar?
-
I am using a child theme. I want the sidebar gone on the single post page.
I am guessing…
I need to, I think, make a copy of the php file in the parent theme.
Then put that copy with child theme.
And delete a line of code.1). This is the end of the code for a single post page. I want the sidebar gone. Can I just delete <?php get_sidebar(); ?> ?
<?php endwhile; // end of the loop. ?> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
2). Where do I put the copy of the php file for the child theme?
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Can I just delete "get_sidebar" to remove sidebar?’ is closed to new replies.