Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can also do this by going to Pages and select “Quick Edit” for a page. There is a tick box for “Allow comments” which you should untick.

    Thread Starter exceldevelopers

    (@exceldevelopers)

    Thanks Jesin.

    Thread Starter exceldevelopers

    (@exceldevelopers)

    Wait. I published my page and now it works! Thanks Jesin for your help.

    Thread Starter exceldevelopers

    (@exceldevelopers)

    Yes. But I forgot to name the custom page template:

    /**
    Template Name: Full Width
     */

    Once I did that, I was able to select the page template for the page I am editing, but the right sidebar still shows. Sigh. Here is the custom page template code:

    <?php
    /**
    Template Name: Full Width
     */
    $bavotasan_theme_options = bavotasan_theme_options();
    get_header(); ?>
    
    	<div style="width:100%" id="primary" <?php bavotasan_primary_attr(); ?>>
    
    		<?php
    		while ( have_posts() ) : the_post();
    			?>
    			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    				<h1 class="entry-title"><?php the_title(); ?></h1>
    
    			    <div class="entry-content">
    				    <?php the_content( __( 'Read more →', 'tonic' ) ); ?>
    			    </div><!-- .entry-content -->
    
    			    <?php get_template_part( 'content', 'footer' ); ?>
    			</article><!-- #post-<?php the_ID(); ?> -->
    			<?php
    			comments_template( '', true );
    		endwhile; // end of the loop.
    		?>
    
    	</div><!-- #primary.c8 -->
    
    <footer id="footer" role="contentinfo">
    	<div id="footer-content" class="grid <?php echo $bavotasan_theme_options['width']; ?>">
    		<div class="row">
    			<p class="copyright c12">
    				<span class="fl"><?php printf( __( 'Copyright ? %s %s. All Rights Reserved.', 'tonic' ), date( 'Y' ), ' <a href="' . home_url() . '">' . get_bloginfo( 'name' ) .'</a>' ); ?></span>
    				<span class="credit-link fr"><i class="icon-leaf"></i><?php printf( __( '%s created by %s.', 'tonic' ), BAVOTASAN_THEME_NAME, '<a href="https://themes.bavotasan.com">c.bavota</a>' ); ?></span>
    			</p><!-- .c12 -->
    		</div><!-- .row -->
    	</div><!-- #footer-content.grid -->
    </footer><!-- #footer -->
    
    <?php wp_footer(); ?>
    
    <!-- <?php echo BAVOTASAN_THEME_NAME; ?> created by c.bavota - https://themes.bavotasan.com -->
    </body>
    </html>

    [Moderator Note: Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

    Thread Starter exceldevelopers

    (@exceldevelopers)

    so should i:

    create child theme
    copy parent theme page.php to child them and rename to page-fullwidth (say)
    make changes to page-fullwidth as Jesin suggested?

    I did all that but it doesn’t seem to pick up that there is now a custom page template available. I have page.php in parent them and page-fullwidth.php in child theme. I presume I should be doing something differently, but what? place a copy of page.php in child theme?

Viewing 5 replies - 1 through 5 (of 5 total)