Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As William Patton said this is a broad question but as far I can understand this may help :</p> <p><a href="http://www.designerledger.com/parallax-scrolling-tutorials/" rel="nofollow noreferrer">http://www.designerledger.com/parallax-scrolling-tutorials/</a> for the one page theme.</p> <p>and a basic start for wordpress development theme :</p> <p><a href="http://codex.wordpress.org/Theme_Development" rel="nofollow noreferrer">http://codex.wordpress.org/Theme_Development</a></p> <p><strong>Update :</strong> I found this awesome plugin that helps you create full screen pages</p> <p><a href="https://github.com/alvarotrigo/fullPage.js" rel="nofollow noreferrer">https://github.com/alvarotrigo/fullPage.js</a></p> <hr> <p><strong>EDIT 2016</strong></p> <p>Due to the many up votes at <a href="https://stackoverflow.com/a/21571860/2073994">user3263807 answer</a> I made a small/basic one page guide for wordpress. For css/js there are plenty good tutorials and plugins over the internet. Also I assume you are familiar with <a href="http://codex.wordpress.org/Theme_Development" rel="nofollow noreferrer">WordPress Themes</a>.</p> <p>First of all you should create a template file for your one page. Let's call it <code>template-one-page.php</code>. The template name, commented inside the file, is the name that will appear in Page Attributes -> Template when you creating a page inside admin panel. After that create a page, ie Home, and assign as template your template. If you want your page to appear as front page (when you enter mydomain.com this page will be shown) go to Setting->Reading->Front page displays->A static page and set as front page your page. <pre><code>// File Security Check defined('ABSPATH') OR exit; /* Template Name: One Page */ ?&gt; </code></pre> <p>Normally a one page has sections. So we want to decide what type of sections we want. It could be pages, child pages, posts, custom fields (like a repeater from <a href="https://www.advancedcustomfields.com/" rel="nofollow noreferrer">ACF</a>) etc.</p> <pre><code>&lt;?php $id = get_the_ID(); // The page id $sections = get_posts(array('post_type' =&gt; 'page', 'post_parent' =&gt; $id)); // get all child pages foreach ($sections as $key =&gt; $section): ?&gt; &lt;section id="page-&lt;?php $section-&gt;ID; ?&gt;" &lt;?php post_class('', $section-&gt;ID); ?&gt;&gt; &lt;h1&gt;&lt;?php echo get_the_title($section-&gt;ID); ?&gt;&lt;/h1&gt; &lt;/section&gt; &lt;?php endforeach; ?&gt; </code></pre> <p>Or with a <a href="https://codex.wordpress.org/Class_Reference/WP_Query#Standard_Loop" rel="nofollow noreferrer">Loop</a></p> <pre><code>&lt;?php $id = get_the_ID(); // The page id $query = new WP_Query( array('post_type' =&gt; 'page', 'post_parent' =&gt; $id) ); // get all child pages if($query-&gt;have_posts()): while ( $query-&gt;have_posts() ) : $query-&gt;the_post(); ?&gt; &lt;section id="page-&lt;?php the_ID() ?&gt;" &lt;?php post_class(); ?&gt;&gt; &lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt; &lt;/section&gt; &lt;?php endwhile; wp_reset_postdata(); ?&gt; &lt;?php endif; ?&gt; </code></pre> <p>You can query what ever you want depending the need of your site.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload