In Business Wordpress Theme Updated with Widget Support

April 22nd, 2006 by Kaushal Sheth

Yes Widgets are the “in thing” this summer. I have updated my Blue Horizon and Abstrakt3c theme to support widgets. Here is yet another update. In Business Wordpress theme now supports widgets. But wait there is more.

Along with Widget support the theme comes along with

  • Admin Bar
  • Easy Addition of Meta Tags to your theme

.

So what are you waiting for. Download the new updated version of the theme from here

Screenshot:
In Business Wordpress Theme

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Posted in Wordpress Themes | 13 Comments »

Abstrakt3c Update

April 16th, 2006 by Kaushal Sheth

There was one problem in abstrakt3c which gave error like
Warning: main(sidebar4.php): failed to open stream: No such file or directory in
Warning: main(sidebar3.php): failed to open stream: No such file or directory in.

The theme has been updated now and the problem is solved. So all those using my previous version of the theme please download new copy here. Also the new version features AdminBar. So check it out today

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Posted in Wordpress Themes | 4 Comments »

How to add admin bar to your existing wordpress theme

April 16th, 2006 by Kaushal Sheth

Well this is first of the many posts that I will be writing to enable all wordpress theme developers to spice up their theme.
After all we love to give many options to our users. So lets start.


Topic for today is how to add Admin Bar to your wordpress theme


What is Admin Bar?

First of all for those who don’t know what Admin bar a small screenshot is attached with post so that you can see what it is.

So go and have a look at it
Adminbar

How to do I create it?

Well its really simple. Say you have created a theme or have a theme with header.php and index.php. files. You would be required to edit header.php and in some cases index.php too.

Procedure

• Open header.php and look for declaration for stylesheet ( include stylesheet for theme ). In most cases the declaration would be something like

  <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

• So now we need to add style alongwith userlevel conditions for our Adminbar. Here is a “Example code” which you can use.


<?php global $user_identity; get_currentuserinfo(); if ($user_identity) { ?>
<style type="text/css">
  /* <![CDATA[ */
 
  #abstrakt-admin-bar {
  margin: 0;
  padding: 0;
  background: #5F7D38;
  border-bottom: 1px solid #000000;
  text-align: left;
  width: 100%;
  }
 
  #abstrakt-admin-bar ul {
  margin: 0;
  padding: 4px;
  list-style-type: none;
  }
 
  #abstrakt-admin-bar ul li {
  list-style-type: none;
  display: inline;
  margin: 0 10px;
  padding: 0;
  font-size: 1.1em;
  color: #ffffff;
  }
 
  #abstrakt-admin-bar ul li.login { margin-right: 30px; }
  #abstrakt-admin-bar ul li.howdy { position: absolute; right: 1em; }
  #abstrakt-admin-bar a { color: #ffffff; text-decoration: none;}
  #abstrakt-admin-bar a:hover { color: #ffffff; }
 
  /* ]]> */
</style>
<?php } ?>
 

• So now your code alongwith earlier stylesheet declaration would be something like

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
 
<?php global $user_identity; get_currentuserinfo(); if ($user_identity) { ?>
<style type="text/css">
  /* <![CDATA[ */
 
  #abstrakt-admin-bar {
  margin: 0;
  padding: 0;
  background: #5F7D38;
  border-bottom: 1px solid #000000;
  text-align: left;
  width: 100%;
  }
 
  #abstrakt-admin-bar ul {
  margin: 0;
  padding: 4px;
  list-style-type: none;
  }
 
  #abstrakt-admin-bar ul li {
  list-style-type: none;
  display: inline;
  margin: 0 10px;
  padding: 0;
  font-size: 1.1em;
  color: #ffffff;
  }
 
  #abstrakt-admin-bar ul li.login { margin-right: 30px; }
  #abstrakt-admin-bar ul li.howdy { position: absolute; right: 1em; }
  #abstrakt-admin-bar a { color: #ffffff; text-decoration: none;}
  #abstrakt-admin-bar a:hover { color: #ffffff; }
 
  /* ]]> */
</style>
<?php } ?>
 

• Declaration in body.php for Adminbar to appear

Search your theme to check where is the declaration for tag defined. In most cases you would find it either in header.php or index.php

Place the following code after body tag

<body>
 
<?php global $user_identity,$user_level; get_currentuserinfo(); if ($user_identity) {
echo '<div id="abstrakt-admin-bar"><ul>';
echo "\n\t<li><a href='".get_settings('siteurl')."/wp-admin/'><strong>".__('Dashboard','abstrakt')."   &#187;</strong></a></li>";
if ($user_level >= 1) {
echo '<li><a href="'.get_settings('siteurl').'/wp-admin/post.php">'.__('New Post','abstrakt').'</a></li>';
echo '<li><a href="'.get_settings('siteurl').'/wp-admin/page-new.php">'.__('New Page','abstrakt').'</a></li>';
}
echo "\n\t<li class=\"howdy\">".__('Logged in as ','abstrakt')." <strong>"."<a href='".get_settings('siteurl')."/wp-admin/profile.php'>".$user_identity."</a></strong>, ["; wp_loginout(); echo "]</li>";
echo "\n</ul></div>";
} ?>

and save the the theme. Upload the files and enjoy your new Adminbar.Please note to backup your theme and data before trying this out.

Please note I have used name abstrakt since its my theme name. you can use yourthemename instead of abstrakt. Just replace all abstrakt word with yourthemename

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Posted in Tutorials | 34 Comments »

Site gets new look

April 13th, 2006 by Kaushal Sheth

Finally I switched default look of the site. The new 3 column theme is just perfect for my needs. Let me know how do you like the new look of my site.

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Posted in Uncategorized, Heart Felt | 5 Comments »

Abstrakt 3 Column Wordpress Theme with Sidebar Widget Support

April 11th, 2006 by Kaushal Sheth

The theme is valid XHTML layout and now features an admin dashboard on front page if you are logged in through backend

Here is an updated version of Abstrakt theme. The new theme is a 3 column version of my famous Abstrakt theme. When Mike created a 3 column of the theme for his personal site I thought I would finally release this version of theme. So here is new 3 column version of the theme. But wait this there is more.

The theme supports widgets. So just upload the theme and activate the theme and select which widgets you want to appear on both sidebar.

So go ahead and enjoy. If you like the work please do consider a small donation to my site.

Screenshot:
Abstrakt 3 Column

Demo: here

Download: here

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg

Posted in Wordpress Themes | 27 Comments »