Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm new to wordpress and I'm currently converting an HTML/CSS site I made to wordpress to make it easier for my client to edit it from the admin panel.

I have provided 3 screenshots and I'll refer to them here.

The first screenshot shows how my website looks so far. It's using a template I made called homepage.php (see screenshot 3 for code). The template includes header.php which contains the logo, navigation menu etc. It has the image banner and finally includes footer.php. I want the "Our Values" part to be editable so that my client can change the text any time they need to.

Currently, they can edit the top part which says "PROtential Coaching" and that's because it's included on the page within the admin panel and not in the template. I want the bottom part including"Our Values" to be editable from that panel too, is there a way to do this or does this content have to be static and within the template? "Our Values" and "Our People" are in a dynamic secondary navigation menu which my client can add items to if they want to, however they can't change the content for the menu item.

Images: http://imgur.com/yq9y8SQ,5IqOPzr,SHkzrFz

Please help me out guys, I've been looking all over the place for days to get this done.

share|improve this question
    
Have you seen this? –  toscho Apr 9 '13 at 19:19

2 Answers 2

These links should help you: http://codex.wordpress.org/The_Loop

http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items

with this two techniks you can give your client the ability to change the content and the navigation. For these you have to edit your theme and insert the snippets on the placese you want to output your contents....

For the footer you can use a custom page maybe footer

    $loop = new WP_Query( 'pagename=footer' );
    while ( $loop->have_posts() ) : $loop->the_post();
        the_content(); 
    endwhile;
share|improve this answer

I would probably do it this way,

  1. Add footer.php to your list of theme files, and copy your footer code there.
  2. Call get_footer in the similar way you call get_header in the code
  3. Widgetize your theme, what you have to do here is essentially create a Sidebar area in the footer to contain "Our Values" text.
  4. Finally in the WP-Admin, Go to Appearance->Widgets, Drag a Text widget to your sidebar area defined in the above step and Fill in the content there. So when ever you want to edit the bottom part you go to Appearance->Widgets and edit your widget, making your footer content dynamic.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.