WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic includes and wordpress (6 posts)

  1. divinei
    Member
    Posted 9 years ago #

    I'm trying to add some pages to my site (without the page maker, it wasn't what I was looking for). Anyway, I'm using dynamic includes, but whenever I go to the pages using the includes, it won't include the header, though I've called it. The page is http://divine-illusions.net/webmistress.php

    Also, my sidebar is really messed up on the comments page, any suggestions?

    Thanks!

  2. Lorelle
    Member
    Posted 9 years ago #

    What is the "page maker"? Sorry for the confusion, but in WordPress there are post pages and Pages, which are individual Pages. Or are you talking about static html php files that feature includes?

    <?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    include(get_template_directory() . '/header.php');
    ?>

    or

    <?php include 'header.php'; ?>

    might work for you.

  3. divinei
    Member
    Posted 9 years ago #

    Thanks, that worked wonderfully!

  4. Lorelle
    Member
    Posted 9 years ago #

    Which one?

  5. divinei
    Member
    Posted 9 years ago #

    The 1st one.

  6. pauljohns
    Member
    Posted 9 years ago #

    As far as your sidebar is concerned...

    you have the container div width, then inside that you have the content width and the sidebar width.

    the sidebar width+content width (including all paddings and margins)
    must be less than the container width in order to be side-by-side.

    Hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags