Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mrmbsanchez

    (@mrmbsanchez)

    s_ha_dum,
    Thank you. I replaced the content in my homepage.php with the copy of what was in the default twenty ten page.php. Then I took the main content div and tags and place them in the HTML tab instead of the Visual Tab of the WP Editor. It seems that the contain id in the page.php page, now my homepage.php, is the “wrapper” for the main content area that I want to be able to edit:
    <div id=”container”>
    <div id=”content” role=”main”>
    <?php
    /* Run the loop to output the page.
    * If you want to overload this in a child theme then include a file
    * called loop-page.php and that will be used instead.
    */
    get_template_part( ‘loop’, ‘page’ );
    ?>
    I placed my div tags and content here, inside the content id
    </div><!– #content –>
    </div><!– #container –>

    I’m not familiar with the role=”main”, is this a WP specific parameter or HTML 5?

    Once the HTML is in place it must get stored in the MySQL database and The Loop will then pick it up for display in the Visual Tab. Now my users can use the Visual Tab to edit the content on the page.

    I’ll finish making my changes and testing and let you know how it goes.
    -Mike

    Thread Starter mrmbsanchez

    (@mrmbsanchez)

    s_ha_dum,
    No my custom page template does not contain a loop. I changed the header.php, footer.php in a theme I copied from TwentyTen and renamed and registered. My default page (page.php) has been changed to homepage.php via the Pages > Edit > Page Attributes Template drop down menu. The homepage.php contains a get_header and get_footer and a main content div. Nothing fancy just tags for text, however some of the divs have are positioned absolute and relative to each other.
    -Mike

    There is a great chapter on this in CSS the missing manual. This is a really good reference book and comes with downloadable exercise files. The other two books I use for CSS are Stylin’ with CSS and Bulletproof Web Design.

Viewing 3 replies - 1 through 3 (of 3 total)