Stroy James
asked 8 years ago

When I create a new page, I see there 2 templates (Default page template, Typography)  listed under the Templates drop down in the Page Attribute widgets on the right side.  If I choose Typography as a template then irrespective of what I type in the text field for the page content, it always displays some other content that seems like demo text for typography template . How do one use Typography page template? Also, are there any other page templates available for use with DW Minion?

3 Answers
Kido D
answered 8 years ago

Hi there,
Thanks for writing in!
At the moments DW Minion doesn’t have extra page templates, and the Typography page template is using for demo purpose only, so please use the Default page template for all your pages.
Thank-you!

Gaurav Tiwari
answered 8 years ago

I can recommend a good use (actually an edit ) for that. As default Page template in DW Minion offers two sidebars, DW-Team can make Typographic Template as one sidebar-ed page template. Dear Stroy! You can go Appearance >> Editor >> Typography Page Template of DW Minion and replace everything in the editor box by following:

 

 <?php
/**
* Template Name: Typography
*/
get_header(); ?>
<div id="main-content">
<div class="entry-content">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php if ( comments_open() ) comments_template(); ?>
<?php endwhile; ?>
</div><!-- #entry-content -->
</div><!-- #main-content -->
<?php get_footer(); ?>

This will give you a wide one sidebar-only page! I did the same, to create a custom homepage.

DominicStaff
answered 8 years ago

Hi @wpgaurav !
At the moment, the code which you provided don’t work. You can add the following code:

<?php
/**
 * Template Name: Full width
 */
get_header(); ?>

        <div id="primary" class="content-area">
            <div class="primary-inner">
                <div id="content" class="site-content" role="main">

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

                    <?php get_template_part( 'content', 'page' ); ?>

                    <?php if ( comments_open() ) comments_template(); ?>

                <?php endwhile; ?>

                </div>
            </div>
        </div>
<?php get_footer(); ?>

Also, you can make fullwidth page layout to your site as described in this topic:
http://cmspioneer.com/designwall/question/how-to-add-a-new-page-layout-type/

Gaurav Tiwari
replied 8 years ago

That works for me and my homepage is an example of that : http://gauravtiwari.org
BTW: How can I write those code syntax here? Using ‘pre’ tag?

Dominic Staff
replied 8 years ago

Yes, you can use “


” tag, in the Text frame.

Gaurav Tiwari
replied 8 years ago

Edited my answer!

Powered by DW Question & Answer Pro