• Resolved hfhmylissa

    (@hfhmylissa)


    Hi, I’ll try to quickly explain what I need to do.
    Essentially, I need to create a blank page with which to work: (free of all theme formatting) I will be coding in a background and several images that all together will make a specialty page within our website.

    Here’s what I’ve done so far:
    I have created a blank template. I am now able to choose template: blank within the WP editor (for my theme), but when I add content (HTML/CSS) nothing shows up.

    The only way I’ve discovered to override this is to actually add the content into the template-blank.php file, then choose that “template” within the editor, and it will show my full page 🙂

    I feel like this is “rigging” the system to get it to play how I need it to – seems that I should be able to create a blank page template and have it work as needed?

    I also realize that I could possibly create a static php page and add it to the posts table in MySQL but frankly, that scares the mess out of me – I can’t seem to manage messing with the MySQL database just yet.

    Any thoughts?

    Thanks in advance!!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • vtxyzzy

    (@vtxyzzy)

    In order for content to show in your page, you will need to have a Loop:

    <?php
    if ( have_posts() ) : while ( have_posts() ) : the_post();
       the_content();
    endwhile;
    endif;

    If you already have a loop, please put your blank page template in a pastebin and post a link to it here.

    Thread Starter hfhmylissa

    (@hfhmylissa)

    thank you so much for your help! I believe I have a loop – here is the pastebin link – the template is still not pulling content.

    Thank you for any additional help you can offer!

    http://pastebin.com/dr2dGYdg

    vtxyzzy

    (@vtxyzzy)

    Looks like your call to the_content() is not inside the loop. Move this:

    <?php the_content(); ?>

    down in place of this:

    <!-- do stuff ... -->
    Thread Starter hfhmylissa

    (@hfhmylissa)

    thank you thank you thank you!!! So great! So glad to have learned how to do this. 🙂 Have a great weekend!

    vtxyzzy

    (@vtxyzzy)

    If your problem has been solved, please use the dropdown on the right to mark this topic ‘Resolved’ so that anyone else with this question can see that there is a solution.

    Thread Starter hfhmylissa

    (@hfhmylissa)

    done. thank you!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How to add static/blank php page?’ is closed to new replies.