Does anyone know of a good tutorial on how to make a one page WordPress site? I have been working on one for a few weeks and I am getting pretty far but I am wondering if I am doing things the hard way so I am looking to see if there are any other methods out there that I should or could be using?
I agree , I also want to know how to make one page wordpress sites u_u
there are some good tutorial you can find. which wordpress builder , I prefer an page builder allow user to choose page and screen options suck as background color….ect
Of the top of my head I can imagine that would be quite easy to code.
All you’d need is index.php, functions.php and style.css
Maybe a loop.php as well and whatever other little features you’d like.
Design the site and build it in html. Include many custom queries throughout the index.php to take the text and images from different pages within the WordPress.
eg in php
$my_id = 206;
$post_id_206 = get_post($my_id);
$content = $post_id_206->post_content;
$content = apply_filters(‘the_content’,$content);
$content = str_replace(‘]]>’, ‘]]’, $content);
echo $content;
Use Jquery to slide to certain element ids.
That would be pretty much it for a start.
The best thing you can do is study the codex wordpress: http://codex.wordpress.org/Theme_Development
In my one page themes I make a WP loop and include the pages on the homepage, one after another, the content being handled by shortcodes. If they’re using wp nav menus, I remove the posts and external links and keep just the pages and just fetch the content for those pages.
I just released a one-page WordPress theme and used theme options to control each section of the homepage. I created a separate php file (e.g. profile.php) for each section and included each of them in the index.php file:
<!-- BEGIN #profile (panel 1) -->
<?php get_template_part("pages/profile"); ?>
<!-- END #profile (panel 1) -->
<!-- BEGIN #skills (panel 2) -->
<?php get_template_part("pages/skills"); ?>
<!-- END #skills (panel 2) -->
...
I built the theme to also include WP default functionality, like posts, pages, and nav menus. Even though it’s a one-page theme, some buyers may still want to create a separate page or blog.
Hope this sparks some ideas for ya!
- Shorit
I just released a one-page WordPress theme and used theme options to control each section of the homepage. I created a separate php file (e.g. profile.php) for each section and included each of them in the index.php file:
<!-- BEGIN #profile (panel 1) -->
<?php get_template_part("pages/profile"); ?>
<!-- END #profile (panel 1) -->
<!-- BEGIN #skills (panel 2) -->
<?php get_template_part("pages/skills"); ?>
<!-- END #skills (panel 2) -->
...
I built the theme to also include WP default functionality, like posts, pages, and nav menus. Even though it’s a one-page theme, some buyers may still want to create a separate page or blog.
Hope this sparks some ideas for ya!
- Shorit
This is way too complicated, probably pretty bad UX
FinalDestiny said
This is way too complicated, probably pretty bad UX
?
FinalDestiny said
This is way too complicated, probably pretty bad UX
+1 just use a page loop http://codex.wordpress.org/Class_Reference/WP_Query
