How to create responsive WordPress page with scrollable effects?

Where can I find a female who learns how to create a WordPress theme for a responsible one page, so when I click on a menu item, it scrolls down.

Here is an example of what I want http://thememints.com/templates/?theme=Cingle%20WP .

+4
source share
6 answers

As William Patton said, this is a broad question, but as I understand it, it can help:

http://www.designerledger.com/parallax-scrolling-tutorials/ for one page theme.

and the basic beginning of a Wordpress development theme:

http://codex.wordpress.org/Theme_Development

: ,

https://github.com/alvarotrigo/fullPage.js


EDIT 2016

- user3263807 answer / wordpress. css/js . , WordPress Themes.

, . template-one-page.php. , , - , → . , Home, . , ( mydomain.com ), "" - "" → " " → " " .   

// File Security Check
defined('ABSPATH') OR exit;
/*

Template Name: One Page

*/

?>

. , . , , , (, ACF) ..

<?php
$id = get_the_ID(); // The page id

$sections = get_posts(array('post_type' => 'page', 'post_parent' => $id)); // get all child pages

foreach ($sections as $key => $section):

?>

<section id="page-<?php $section->ID; ?>" <?php post_class('', $section->ID); ?>>
   <h1><?php echo get_the_title($section->ID); ?></h1>
</section>

<?php endforeach; ?>

Loop

<?php

$id = get_the_ID(); // The page id

$query = new WP_Query( array('post_type' => 'page', 'post_parent' => $id) ); // get all child pages

if($query->have_posts()):
    while ( $query->have_posts() ) : $query->the_post();
?>
        <section id="page-<?php the_ID() ?>" <?php post_class(); ?>>
            <h1><?php the_title(); ?></h1>
        </section>
<?php endwhile; wp_reset_postdata(); ?>
<?php endif; ?>

, , .

+4

, .

, . , , .

-, .

, . , , - , WORDPRESS.... , .

, .

, , , WORDPRESS.

Wordpress query-post, , , , , .

, : create-a-single-page-wordpress-website

,

+29

- , - Wordpress , . - . " " , .

http://www.lynda.com/WordPress-tutorials/WordPress-Building-One-Page-Style-Site/169876-2.html

, Onesie OneEngine, , , . "", , " ", Wordpress. , Wordpress , , Wordpress.

+1

localscroll scrollTo jquery plugin , .

: http://flesler.blogspot.com

jquery , , , , , .

$.localScroll({
        target:'body',
        duration:1000,
        queue:true,
        hash:true,
        easing:'easeInOutExpo',
        offset: {left: 0, top: -55}
       });
0

, :

(<a>) .

:

<a href="#aboutUs">About Us</a>
<h2 id="aboutUs">About Us</h2>

, WordPress. URL-: , :

Example: https: //example.wordpress.com#aboutUs

Please note that this method does not provide smooth scrolling to this element, but instead immediately jumps to this point on the page.

0
source

All Articles