This topic has 3 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #156903
     wilfriedMarseille
    Participant

    Hello
    I try ti add a page template but i don’t see it on my dashboard
    I put a file name content-toto.php

    With this code

    ‘<?php

    /**

    Template Name : TELECHARGEMENT

    */

     

    get_header(); ?>

     

    <?php get_template_part(‘page-parts/general-title-section’); ?>

     

    <?php get_template_part(‘page-parts/general-before-wrap’); ?>

     

    <?php if ( have_posts() ) : ?>

    <?php

    // Start the Loop.

    while ( have_posts() ) : the_post();

    ?>

     

    <?php

    /*

    * Include the post format-specific template for the content. If you want to

    * use this in a child theme, then include a file called called content-___.php

    * (where ___ is the post format) and that will be used instead.

    */

    get_template_part( ‘content-toto’ );

    ?>

     

    <?php get_template_part( ‘page-parts/posts-social-share’ ); ?>

     

    <?php if ( sq_option( ‘page_comments’, 0 ) == 1 ): ?>

     

    <!– Begin Comments –>

    <?php

    if ( comments_open() || get_comments_number() ) {

    comments_template( ”, true );

    } ?>

    <!– End Comments –>

     

    <?php endif; ?>

     

     

    <?php endwhile; ?>

     

    <?php endif; ?>

     

    <?php get_template_part(‘page-parts/general-after-wrap’); ?>

     

    <?php get_footer(); ?>’

     

    But When I manke a new page, I don’t saw the template toto …

    If you love Ableton check my blog :
    www.zikrea.com

    #156904
     wilfriedMarseille
    Participant
    COPY CODE
    ‘<?php
    
    /**
    
    Template Name : TELECHARGEMENT
    
    */
    
     
    
    get_header(); ?>
    
     
    
    <?php get_template_part(‘page-parts/general-title-section’); ?>
    
     
    
    <?php get_template_part(‘page-parts/general-before-wrap’); ?>
    
     
    
    <?php if ( have_posts() ) : ?>
    
    <?php
    
    // Start the Loop.
    
    while ( have_posts() ) : the_post();
    
    ?>
    
     
    
    <?php
    
    /*
    
    * Include the post format-specific template for the content. If you want to
    
    * use this in a child theme, then include a file called called content-___.php
    
    * (where ___ is the post format) and that will be used instead.
    
    */
    
    get_template_part( ‘content-toto’ );
    
    ?>
    
     
    
    <?php get_template_part( ‘page-parts/posts-social-share’ ); ?>
    
     
    
    <?php if ( sq_option( ‘page_comments’, 0 ) == 1 ): ?>
    
     
    
    <!– Begin Comments –>
    
    <?php
    
    if ( comments_open() || get_comments_number() ) {
    
    comments_template( ”, true );
    
    } ?>
    
    <!– End Comments –>
    
     
    
    <?php endif; ?>
    
     
    
     
    
    <?php endwhile; ?>
    
     
    
    <?php endif; ?>
    
     
    
    <?php get_template_part(‘page-parts/general-after-wrap’); ?>
    
     
    
    <?php get_footer(); ?>’

    If you love Ableton check my blog :
    www.zikrea.com

    #157007
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #157126
     Radu
    Moderator

    You should see the page template in the wp-admin -> add new -> page template

    But you should inspire from our existing tempaltes copy a page template from wp-content/themes/kleo/page-parts/ into wp-content/themes/kleo-child/page-parts/

    You should be able to see the page template there

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?