My client has asked for three blocks of editable information to be added at the top of a page, above a page’s content. This page is a static front page with it’s own template “front.php”, so this is a one-time setup (all other pages will use the standard “page.php” template). This would be like adding those news blocks that appear at the bottom of the dashboard.
I’ve dug around the codex and did searches here and with Google, but I’m not finding the information or similar situations to help me know if I’m thinking this procedure correctly.
This is a big jump for me, so I’d like to know if…
– I would add to the front.php template three new
<?php include (TEMPLATEPATH . '/templatename.php'); ?>lines to call up three blocks.
– Each of these new templates would contain the get-post information,
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>">but have the post id # in order to call up a specific page that contains the editable information. Then all my client would have to do is edit those “pages” to change the news items that appear on the front static page.
– On style.css I would need to style each of the three templates with the positioning of the blocks (each template would have a separate class for positioning, but I would be able to have one combined class for typography)
– I would need to be able to float the three news blocks in the content area above the static page’s content, and to the right of the left sidebar which touches the header.
I really could use a tip as to where floating three blocks in the content area could be done. Any good explanations out there for
I could use a little advice or at least be pointed to codex files which explain this, or perhaps a few others could let me know a better way to do this (i.e., would posts be better than pages to do the news items?)
- The topic ‘Adding three news blocks before a page’s content’ is closed to new replies.