• I have been trying to design a blank page for my online store. I basically copied an existing page file and recreated it without headers, content etc, etc.

    Now when i try to add images and text in the page designer nothing will go where i want to put it. for instance, i want an image to sit in the middle of the page so i align it centre. It looks centre on the page designer but when i preview page it is still on the left.

    My website is https://www.poppyschoice.ca

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you removed the call to get_header then none of the CSS for alignment will be present on the page so it won’t work. All themes should always have get_header and get_footer in the proper files. When you think you can justify not having it you won’t have to ask anyone if it’s okay because you’ll know enough about WordPress to know the answer.

    Thread Starter cmagallagher

    (@cmagallagher)

    The get_header and get_footer are present. This is what the page file looks like:

    <?php
    /*
    Template Name: blank page2
    */
    ?>
    <?php get_header(); ?>
    
    <div id="wrapper"  class="clearfix">
    
            <?php if(have_posts()) : ?>
            <?php while(have_posts()) : the_post() ?>
            <?php $pagedesc = get_post_meta($post->ID, 'pagedesc', $single = true); ?>
            <div id="post-<?php the_ID(); ?>" >
              <div class="entry">
                <?php the_content(); ?>
              </div>
            </div>
            <!--/post-->
            <?php endwhile; else : ?>
            <div class="posts">
              <div class="entry-head">
                <h2><?php echo get_option('ptthemes_404error_name'); ?></h2>
              </div>
              <div class="entry-content">
                <p><?php echo get_option('ptthemes_404solution_name'); ?></p>
              </div>
            </div>
            <?php endif; ?>
    
        </div>
        <!-- content-in #end -->    
    
      </div>
      <!-- container 16-->
    </div>
    <!-- wrapper #end -->
    <?php get_footer(); ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. As it stands, your code has now been permanently damaged/corrupted by the forum’s parser.]

    If your trying to customize your theme you will need to contact your vendor for support. Commercial themes behind a paywall are not supported on these forums.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘designing a blank page’ is closed to new replies.