Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1126316
    ericshew
    Participant

    Hi there,

    I’m like the blank – container | header, footer template and would like to create different versions of it that people can select when they edit the page. The template name will affect the css that is used.

    What I like about the blank – container | header, footer template is how it includes the page title and I also like the margins. The page I’ve created is slightly different.

    When I posted before, I was told to make a series of pages that are in the root folder of the child theme that have have names and content like this.

    I want a series of page templates that are identical to blank – container | header, footer

    Thank you.

    filename: one-america.home.php

    And here is the code:

    <?php

    // =============================================================================
    // TEMPLATE NAME: One America – home
    // —————————————————————————–
    // A custom page template
    // =============================================================================

    ?>

    <?php get_header(); ?>

    <div class=”x-container max width offset”>
    <div class=”x-main full” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>

    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <div class=”entry-wrap”>
    <?php x_get_view( ‘global’, ‘_content’, ‘the-content’ ); ?>
    </div>
    </article>

    <?php endwhile; ?>

    </div>
    </div>

    <?php get_footer(); ?>

    #1126780
    Rupok
    Member

    Hi there,

    Thanks for writing in! Please use the name like “one-america-home.php” instead of “one-america.home.php” since using dot is not a good practice. However are you facing any trouble on this? Let us know we could assist on this.

    Cheers!

    #1127242
    ericshew
    Participant

    Thank you. I actually mistyped the name. The one I’m actually using is the same as what you indicated above. Could you please address the issue I mentioned above? I would like to know what text I should use to have the custom templates be the same as blank – container | header, footer.

    Thank you.

    #1127378
    Rupok
    Member

    Hi there,

    You can see the code from /FRAMEWORK/VIEWS/{STACK}/TEMPLATE-BLANK-1.PHP.

    Above file is for “Blank – Container | Header, Footer”

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1126316 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>