• Hi,

    I’ve created a site in HTML and CSS and am looking to apply WordPress to it. I have a lot of experience manipulating existing WP themes but this is my first time building from scratch.

    One thing I am wondering about, is that my site’s main content is divided into 2 sections: a main part and a sidebar. However this is a sidebar that has changing content depending on the page. It is NOT a sidebar that exists on WP blog pages. Also, as there is no blog at all in this site (nor plans for one) I don’t think I will even need to create a sidebar.php.

    How do I go about making both sections of any page editable (ie the main content and the sidebar) by the client? Again, I’m assuming that I shouldn’t have to differentiate between pages and posts, because there isn’t a blog being planned for this site. Also, as the sidebar will change with every page, I don’t really want to have to make a different template for every page!

    Any tips or advice would be great here.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter newtime

    (@newtime)

    Essentially if anyone has a link to a tutorial on making wordpress themes from scratch for non-blog sites that would be great.

    One way of doing it would be for the client to put both areas on the page in the page editor using the Visual Editor then swap to the HTML Editor and put the tags

    <div id="main-content">
    
    </div>
    round the main content
    
    and
    <div id="side-content">
    round the sidebar content
    </div>

    [Please post code snippets between backticks or use the code button.]

    In the style sheet you could float them (or use absolute positioning) to separate them

    But this would rely on your client being savvy enough to put the HTML tags around..

    Another way would be to have a widgetized sidebar and use text widgets for your client to put sidebar content in and use the ‘Widget Logic’ plugin to put conditional options on the widgets to indicate which widget goes with which page.
    Off hand I can’t think of any other way without re-writing the editor code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress from scratch advice for NON-blog site’ is closed to new replies.