Create a New Page Template - Custom

edited August 2014 in Busiprof
You replied:
4 For create new  page template ;- Go To dashboard>>Page >>Add new page 

                                                      Give page title , Description


When I create a New Page I have to choose from the templates available.  The templates all have the Blog data attached.  I want a clean page with no date, comments, etc.  How do I create a custom page template with none of that data?


Comments

  • Hi 

    First create child theme and then copy page.php file from your parent theme directory then 

     past it into child theme directory and then edit this file .

      Find the line of code   

                      <h2 class="blog_section_title"><a><?php the_title(); ?></a></h2>
         <div class="blog_link"><span>
    <img  src="<?php echo $image_uri. '/blog_ic.png' ?>">&nbsp;&nbsp;<?php the_time('M j,Y');?></span> 
    <a><img  src="<?php echo $image_uri. '/blog_ic2.png'?>">&nbsp;&nbsp;<b><?php  comments_popup_link( __( 'Leave a comment', 'busi_prof' ) ); ?></b></a>
    </div>

    and also again find the line of code at the bottom of the page.php file 
     
       <?php comments_template( '', true );?>


      --------------------------------------------------------------
    Finaly remove both lines of code   ,
     Crate   A new page and assign it Default  Template .

    Thanks
    akhilesh


      
  • Is this the only way to not have a date and comments from the Blog appear on a page?  The sample on your website does not show all of the blog data.
  • Is this the only way to not have a date and comments from the Blog
    appear on a page?  The sample on your website does not show all of the
    blog data.
  • edited August 2014
    Hi 

    Pls specify the name of  template from where you want to remove date and comment .

    Am sending you snap shot of  BLOG Template ,the indicate date and comment you want to remove .

    Am i right ?

    Pls first clear your issue .

    Sorry for your inconvenience .

    Thanks

    blog date comment.png
    1320 x 685 - 577K
  • Please see attachment.  Comments are on the page.
    ScreenHunter_18 Aug. 08 00.37.jpg
    1252 x 589 - 51K
  • Hi 

    Are you want to remove the sidebar ?

    See the attachment 
    sidebar.png
    1015 x 664 - 63K
  • I want to remove the section you highlight, the date and comments

  • Hi 

    If you don't want to use left section which was I Highlighted ( that is a sidebar  ) ,

    You can use fullwidth page template instead of default page tempalte . The left section will Remove.

    Thanks

  • OK. What about the Comments and Date?  That was my original question.
  • That worked.  How do I remove the date from the page?
  • Hi 

    Follow this thread  


    And if still does not resolved  your issue then send me the page URL OR Snap Shot  

    Thanks 

    Akhilesh 
  • edited September 2014
    Hi 

    I have  removed date and comment section from your page .

    Pls visit your website and Enjoy with it .

    If you want to remove the Repetitive title Then You can Remove 
     <h2 class="blog_section_title"><a><?php the_title(); ?></a></h2> 

    From you page.php and fullwidth.php file .

    Thanks 

    Akhilesh
  • Hi 

    Is your issue resolved ?

    Can i close this ticket ?

    Thanks 

    Akhilesh
This discussion has been closed.