Fabiana,
Have you found an answer for your question? I think we have the same problem: I want to build a one-page layout.
Actually, the design is simple:
= MENU =
————-
PHOTO SLIDER
=============
A PAGE
=============
AN OTHER PAGE
=============
PHOTO BLOG
POST
——-
OTHER BLOG
PHOTO POST
=============
SIDEBAR
=============
I started to manipulate _s (https://underscores.me/) framework and change INDEX.PHP to this:
<?php
get_header(); ?>
<div id="container">
<a name="top"></a>
<?php
$args = array(
'sort_order' => 'ASC',
'sort_column' => 'menu_order', //post_title
'hierarchical' => 1,
'exclude' => '',
'child_of' => 0,
'parent' => -1,
'exclude_tree' => '',
'number' => '',
'offset' => 0,
'post_type' => 'page',
'post_status' => 'publish'
);
$pages = get_pages($args);
//start loop
foreach ($pages as $page_data) {
$content = apply_filters('the_content', $page_data->post_content);
$title = $page_data->post_title;
$slug = $page_data->post_name;
?>
<div class='<?php echo "$slug" ?>'><a name='<?php echo "$slug" ?>'></a>
<h2><?php echo "$title" ?></h2>
<?php echo "$content" ?>
</div>
<?php
} ?>
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
<?php
get_sidebar();
get_footer();
?>
Now I’m working with CSS to format and position the text, change fonts and colors, etc.
If you have any information or reference to help me, I appreciate.
Saúde!
m.