Title: create menu scroll for onepage Theme
Last modified: August 21, 2016

---

# create menu scroll for onepage Theme

 *  [epd](https://wordpress.org/support/users/epd/)
 * (@epd)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/create-menu-scroll-for-onepage-theme/)
 * Hello everyone,
    i have create onpage Theme with wordpress Function Reference/
   get pages below the code
 *     ```
       <?php get_header();
   
       	// define how pages will display
       	$args = array(
       		'sort_order' => 'ASC',
       		'sort_column' => 'menu_order', //post_title
       		'hierarchical' => 1,
       		'exclude' => '',
       		'child_of' => 2,
       		'parent' => -1,
       		'exclude_tree' => '',
       		'number' => '',
       		'offset' => 0,
       		'post_type' => 'page',
       		"post_parent" => get_the_ID(),
       		'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;
       ?>
   
       <main role="main">
   
       	<section><!-- section -->
   
       		<div class='<?php echo "$slug" ?>'>
       			<h1><?php echo "$title" ?></h1>
       			    <?php echo "$content" ?>
       		</div>
       	</section><!-- /section -->
       </main>
   
       <?php
       }
       get_footer();
       ?>
       ```
   
 * now i need to create the menu scrollable for all page,
    someone can tell me how
   can do it without installing plugin?

Viewing 1 replies (of 1 total)

 *  Thread Starter [epd](https://wordpress.org/support/users/epd/)
 * (@epd)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/create-menu-scroll-for-onepage-theme/#post-4670101)
 * no advice?

Viewing 1 replies (of 1 total)

The topic ‘create menu scroll for onepage Theme’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [epd](https://wordpress.org/support/users/epd/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/create-menu-scroll-for-onepage-theme/#post-4670101)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
