Community Forums › Forums › Design Tips and Tricks › Home page template, Sample theme
Tagged: custom template, page layout, Sample Theme, sidebars
This topic contains 1 reply, has 1 voice, and was last updated by colkav 3 months, 1 week ago.
-
AuthorPosts
-
February 7, 2013 at 6:49 am #18639
Hi all,
I want to create a layout a bit like this:
except I’d like some text to the left of the sidebar.
I have it in my head that to do something like this, using the sample theme, I need to create a Page Template for the Home page.
I’ve create a Page called Home.
And I’ve created a template called front-page.php with the following code, based very partially, on these instructions:
http://www.artofblog.com/building-a-genesis-child-theme/
<code>
<!–?php /** (i’ve removed this bit) */// Remove Page Title remove_action( ‘genesis_post_title’, ‘genesis_do_post_title’ );
// Content Area remove_action( ‘genesis_loop’, ‘genesis_do_loop’ ); add_action( ‘genesis_loop’, ‘be_home_loop’ );
/** * Home Content Area * */
genesis(); ?–>
</code>All works fine.
I then added a the sidebar by using this tutorial (the “Sidebar before posts” code):
http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar
and adding the relevant code to functions.php.
Now, at this point I’m asking myself, why do I need to use a custom page template?
…and the Home page, sidebar / genesis responsive slider works fine.
And what i though i would be able to do at this point is go into the Dashboard->Pages and edit / add text to the Home page. But no, when I tried to do this, and hit publish it took me to a “Are you sure you want to do this?” notice… and no text shows on the Home page.
How do I get the front-page.php to use the content on my Page called Home? Is it something to do with adding divs in the front-page.php? (excuse my lack of knowledge, but if i was just pointed in the right direction…)
Do i have to use a custom template on the home page to achieve what i want to do?
And, apologies for all the questions, but, in the example:
See the second row? The “daily Bags” etc… How would a WP developer typically go about putting these in a page? I can understand they might style the elements in the stylesheet, but would the content, images etc be added in the WordPress Edit Page section?
My URL is here:
http://clienttest3.macsupportedlondon.co.uk/
(the text box, which is in the right place, was / is currently achieved by adding a second sidebar, and text widget)
Many thanks in advance for any insight!
Colkav
February 7, 2013 at 2:17 pm #18731Marking this as resolved because I need to re-phrase this question..
-
AuthorPosts
You must be logged in to reply to this topic.