WordPress.org

Support

Support » Your WordPress » Dynamic includes and wordpress

Dynamic includes and wordpress

  • 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thanks, that worked wonderfully!

    Which one?

    The 1st one.

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Dynamic includes and wordpress’ is closed to new replies.
Skip to toolbar