• Resolved iclementnomadps.com

    (@iclementnomadpscom)


    Hi,

    I have created pages but the templates always transform them in posts.
    I just want normal text in a normal page.
    Can you please advise? I tried changing it in page “single” but my level of coding isn’t good enough to sort it out ??
    I also want to have all of the side bar on the right and on mobile version I want that bar to appear after the content of the page.
    My website is nlc.nomadps.com
    thanks alot

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter iclementnomadps.com

    (@iclementnomadpscom)

    I did it!

    For those who want to create normal page template. Go into your cpanel, folder under your themes folder (wp-content/themes/mediaphase-lite) , create a php page. I called mine basicpage.php

    then enter this:

    <?php
    /*
    Template Name: Basic Page
    */
    ?>
    <?php
    get_header();
    get_template_part( 'inc/partials/content', 'inner-navigation' );
    ?>
    
    <div id="main">
    		<div class="wrap">
    			<?php
    			get_sidebar();?>
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    <?php
    /*
    Template Name: Basic Page
    */
    ?>
    <?php
    get_header();
    get_template_part( 'inc/partials/content', 'inner-navigation' );
    ?>
    
    <div id="main">
    		<div class="wrap">
    			<?php
    			get_sidebar();?>
    
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    <?php the_content('
    Read the rest of this page ?</p>'); ?>
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    <?php endwhile; else: ?>
    
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    </div>
    	</div>
    </div>
    	</div>
    </div>
    	</div>
    </div>
    	</div>
    </div>
    	</div>
    
    <?php
    get_template_part( 'inc/partials/content', 'home-bottom-ribbon' );
    get_template_part( 'inc/partials/content', 'home-logos' );
    
    get_footer();

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

    Do not edit the theme itself. First create a child theme for your changes.

    Thread Starter iclementnomadps.com

    (@iclementnomadpscom)

    great thank you didn’t know about that

    I’m trying to do the same but this code doesn’t work on my pages.
    Any suggestions?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘pages instead of posts’ is closed to new replies.