• Hi,
    I’m just wondering how do you create a template for one page sites (or sites where the page is really long consisting of all sorts of semi-related sections).

    I’m specifically asking how you’d make it updatable from the dashboard in terms of contents. If one page has lots of sections that the template would need to style/lay out, how have you been solving it?

    Thank you

    I

    • This topic was modified 4 years, 11 months ago by Jan Dembowski.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    I would create a custom page template that fetches data from various places and generates appropriate output from the data. If you name it front-page.php, it’ll be used for the site’s home page (and only page in your case).

    It can get various posts, each of which contain content specific to a certain section. You can also add custom fields to various posts to allow editing of smaller elements that may not warrant their own post.

    In fact, a single page’s editor screen could contain a bunch of custom fields which together comprise all of the site’s content. You may wish to use a custom field plugin to help you create all the fields and make it easier to fetch and display the data on your template.

    Thread Starter portia79

    (@portia79)

    Ok. Thank you for the clarification.

    It’s not recommended (for SEO) to make your site all on one page.
    And with WordPress, the other URLs would still be accessible directly, even without them being linked on the one page.

    Thread Starter portia79

    (@portia79)

    I know that popular things are not always good things but isn’t it true that in recent years a lot of websites have been created as one page apps?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create a template for one page sites’ is closed to new replies.