Skip to content

Instantly share code, notes, and snippets.

View rajeevedmonds's full-sized avatar
🏠
Working from home

Rajeev Edmonds rajeevedmonds

🏠
Working from home
View GitHub Profile
/*
Theme Name: My First Theme 1.0.0
Theme URI: http://www.freshtechtips.com
Description: A simple and minimalistic WordPress theme
Author: Rajeev Edmonds
Author URI: http://twitter.com/freshtechtips
Version: 1.0.0
*/
body{
font-family:Georgia, Arial, Helvetica, Sans-serif,serif;
font-size:15px;
color:#000;
background:#fff;
}
h1 {
font-size:50px;
}
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title ( '|', true,'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php get_header(); ?>
<div id="post-content">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<div class="post">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="entry">
<?php the_post_thumbnail(); ?>
<?php
add_theme_support( 'menus' );
?>
<?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header' ) ); ?>
.menu-header {
width:960px;
background:#f8f8f8;
display:block;
float:left;
position:relative;
}
.menu-header ul{
list-style:none;
add_theme_support('post-thumbnails');
set_post_thumbnail_size(350, 200, true);
<?php get_header(); ?>
<div id="post-content">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<div class="post">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="entry">
<?php the_post_thumbnail(); ?>
<?php the_content(); ?>
if ( function_exists('register_sidebar') )
register_sidebar( array (
'name' => 'Widget Area',
'id' => 'widget_area',
'before_widget' => '<li id="%1$s" class="widget-section %2$s">',
'after_widget' => "</li>",
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );