• Heloo,
    I tried to create a one page and show all pages on this page like this:
    Theme Link

    i found this code:

    <?php $pages = get_pages();
    foreach ($pages as $page_data) {
        $content = apply_filters('the_content', $page_data->post_content);
        $title = $page_data->post_title;
    	$slug = $page_data->post_name;
       	echo "<div class='$slug'>";
    	echo "<h2>$title</h2>";
    	echo $content;
    	echo "</div>";
    }
    ?>

    Also i created two pages with style-sheet for each page background: #399 and the other page #F96 as .page1 .page2

    everything working fine but without the styles.

    I know maybe this is the wrong way to do that I don’t have enough experience in wordpress codes and i checked codex but my english not good to understand everything.
    So please can you help me with that or is there any plugin can do this i mean like sections on one page?

    thanks alot

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sailo

    (@sailo)

    Any news? Any one?

    Hi, I am Sharon and I would like to help you.
    Do you have a link to the site so that I can see it?

    Make sure you have a stylesheet (CSS) in your directory and that you are linking to it.

    Let me know how you get on.

    Hello,
    I am moon .
    One-page website is hot and popular?. But they are not for everyone or every business . It is easy to want one because they are popular and if done correctly, yours could be a hit.
    A good candidate for a one-page website is not super-heavy on content.

    Thanks………….

    Thread Starter sailo

    (@sailo)

    Hello,
    I don’t have link now, I am trying to know how to create this kind of layout or sections this is what i need :/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to create One Page’ is closed to new replies.