Hello Friends after long time I am back.I was little busy & I got start my work again.I was reading about WordPress last few days.After Reading that NEO's link ( https://robot.lk/viewtopic.php?f=41&t=2346 ) I could get a display with my new theme,
This is WOW to me
Index.php
Code: Select all
<?php get_header(); ?>
<div id="main">
<div id="content">
<h1>G-Sparkz Main page</h1>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<h4>Posted on <?php the_time('F jS, Y') ?></h4>
<p><?php the_content(__('(more...)')); ?></p>
<hr>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<div id="delimiter"></div>
<?php get_footer(); ?>
Code: Select all
<div id="footer">
<h1>MY First FOOTER</h1>
</div>
</div>
</body>
</html>
Code: Select all
<html>
<head>
<title>my first theme</title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
</head>
<body>
<div id="wrapper">
<div id="header">
<h1>my header in my first theme</h1>
</div>
Code: Select all
<div id="sidebar">
<h2 class="sidebartitle"><?php _e('Categories'); ?></h2>
<ul class="list-cat">
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
<h2 class="sidebartitle"><?php _e('Archives'); ?></h2>
<ul class="list-archives">
<?php wp_get_archives('type=monthly'); ?>
</ul>
</div>
Code: Select all
body {
text-align: center;
}
#wrapper {
display: block;
border: 5px #a2a2a2 solid;
width:90%;
margin:0px auto;
}
#header {
border: 2px #FF4040 solid;
}
#content {
width: 75%;
border: 2px #0000EE solid;
float: left;
}
#sidebar {
width: 24%;
border: 4px #a2a2a2 solid;
float: right;
}
#delimiter {
clear: both;
}
#footer {
border: 2px #a2a2a2 solid;
}
.title {
font-size: 11pt;
font-family: arail;
font-weight: bold;
}
First I wanna add 2 pictures to my header & to the footer.How can I do that?(Please give me a little explanation about the changes of the code )
I don't need to make complex theme with navigation bars.But I wanna make this as a project.Then I can develop this.