@aldoy : Can you please share your page template so that I can help your resolve the issue.
Regards,
Tikaram
Thread Starter
HD
(@aldoy)
Sorry for the delay in reply, this is the code I’m trying to get a blank and Noside bar page:
<?php
/**
* Template Name: Noside Bar Page
*
* @package WordPress
* @subpackage Verity
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content/content', 'page' );
endwhile; // End of the loop.
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
// get_sidebar();
// get_footer();
@@aldoy : The template seems to be working fine. I don’t seem to find any issue on your site. Let me know if you have any more issues.
Regards,
Tikaram
Thread Starter
HD
(@aldoy)
Correct, but my theme options has the Sidebar switched on, when this custom page template is used and the get_sidebar() commented out the content is aligned to the right which looks like there’s a sidebar + No “bread icon” showing next to the Menu.
@aldoy : Replace your code with the following code. Hope this resolves your issue.
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Verity Pro
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content/content', 'page' );
//get_template_part( 'template-parts/content/content', 'comment' );
endwhile; // End of the loop.
?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- #content -->
</div><!-- .below-site-header -->
</div><!-- .site-inner -->
</div><!-- #page -->
<?php wp_footer(); ?>
</body>
</html>
Regards,
Tikaram
Thread Starter
HD
(@aldoy)
Thank you for your great help, worked like a charm 🙂
Thread Starter
HD
(@aldoy)
But as you can see here the bread icon for the menu has gone because I commented out the wp_footer()
https://doy.tech/ibda3/
@aldoy : Glad to know that the issue has been resolved. Have a Good day.
Regards,
Tikaram