Solved

a couple of general questions about WordPress development

Posted on 2013-05-28
7
219 Views
Last Modified: 2013-05-30
Hi friends. I am developing a web site in WordPress. The front page will look like the attached image; the interior pages will look somewhat different. I am new to WordPress. I have a few questions.

1) How can I develop different templates for WordPress -- front page template; internal page template; another internal page template; etc.?

2) I am using, as my framework, the Foundation WordPress theme, a free and responsive theme from http://fwp.drewsymo.com / Author: Drew Morris.

Do you suggest that I simply develop the CSS/HTML for these templates (front page; internal), and adapt that CSS/HTML to this framework? Or should I develop within the framework itself -- I have tried doing this, but my results are erratic since I do not fully understand how Drew Morris put together the CSS for this framework.

Please give me your advice. I am in a crunch to develop this site. Thank you very much for your time and expertise.

Eric
PALPARTNERS-ImageSmart-WEB-FINAL.jpg
0
Comment
Question by:Eric Bourland
  • 4
  • 3
7 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
You can create custom templates under any theme.

http://codex.wordpress.org/Pages#Page_Templates

I would stay within your chosen framework because all you need to do is modify the basic page template and change the existing HTML and CSS as you need.
0
 
LVL 3

Author Comment

by:Eric Bourland
Comment Utility
Jason, thank you.

So, then, should I make separate templates for the front (index) page and the interiors pages?

Also, should I edit header.php and footer.php, if these will be the same for all pages?

Finally, do I ever edit page.php, if I am using only my custom templates?

Thank you again.

Eric
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Yes, I would make separate templates for front and interior.   Read about Template Hierarchy on the WordPress codex to see how you can use templates in nifty ways.  

You can edit header and footer if you want to make global changes.  You can also use various WordPress conditional functions like is_home() to have special content for specific pages.  

You don't need to edit page.php if you are using your own templates unless you want a different default whatever to be present in page.php.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 3

Author Comment

by:Eric Bourland
Comment Utility
This is making more sense.

So, to create a new page template such as interior_page.php. I would begin that file thus:

<?php

/*

Template Name: interior_page

*/

?>



<?php get_header(); ?>

Open in new window


Correct?
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
Comment Utility
Correct?

Pretty much.  A custom page template basically is this:

<?php
/*
Template Name: Name it.
*/
//Display the header
get_header();
//Display the page content/body
if ( have_posts() ) while ( have_posts() )
{
the_post();
the_content();
}
//Display the footer
get_footer();
?>

Open in new window


Just add HTML and CSS as needed to match the layout you have in your head.
0
 
LVL 3

Author Closing Comment

by:Eric Bourland
Comment Utility
Jason, really helpful. Thank you very much. I might come back here with a few more questions. All best.

Eric
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
I might come back here with a few more questions.

That's what the site is here for.  Good luck!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

If you are looking for plug-ins to add functions to your WordPress small business web site, take some time to read though this comprehensive list.  These are all the plugins I use for my customers WordPress web sites, as well as my own.  Be sure to …
How to create your own WordPress Theme Before I begin with the theme design tutorial, I would like to give you the basics of what is required to make a WordPress Theme. The most basic WordPress theme only requires 2 files: a style.css file and an…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now