Source byty.ro

Since I’ve launched by first Wordpress Child Theme based on Thematic I thought writing about how you can make small changes to the theme and put your own graphical logo, add css for other plugins, basically create a customized version of it.

This post is divided in 4 different parts, particularly:

  1. Installing Wordpress Child Themes
  2. Adding your Own Logo
  3. Adding a standard top ad banner to your page
  4. Creating css to style plugins that do not display perfectly on your theme

1. Installing Wordpress Child Themes

Wordpress Child Themes are a new concept introduced not a long time ago that allow you to inherit all of the functionality of a parent theme and overwrite the css style, change the images and some parts of the html through the use of functions.php file. We won’t go in a lot of detail on how to create a Child Theme here, but if you are interested and want to find out more please have a look here, here and here.

To get started you need to Download the Thematic Theme (this is the parent theme), then Download the Byty Child Theme.

Once this is out of the way you have to upload both of the themes to your server in the /themes folder, just like you would do with any other theme. After the parent and child theme have been uploaded you can now activate the child theme (you don’t have to setup anything for the parent theme).

This is it! Now you know how to install a Wordpress Child Theme. Easy isn’t it!

2. Adding your own logo

I’ve designed the Byty Child Theme to be easy to customize. With this in mind you can add your own logo in no time through the use of CSS.

First thing you need to do is to make sure that your logo is 205px by 60px or something similar. You need to upload the logo into the wp-content/themes/byty/images folder.

Next open wp-content/themes/byty/styles.css file and find the #blog-title and #blog-title a declarations.

In the #blog-title declaration remove the comments (/* this is a css comment */ ) from background:url(images/logo.gif) 0px 63px no-repeat; and replace logo.gif with your own personal logo.

In the #blog-title a declaration remove the comments from filter:alpha(opacity=0); -moz-opacity: 0; opacity:0;. This will make the title of your blog transparent, basically hiding it and letting the logo to be displayed in the back. This is good from an accessibility point of view since if you disable the CSS you can still see the text from your Blog Title.

In the end this is how that particular piece of css should look like:

#blog-title{
background:url(images/my_personal_logo.gif) 0px 63px no-repeat;
width:205px;
height:84px;
text-indent:0px;
padding:0px;
padding-top:60px;
border:none;
}
#blog-title a{
display:block;
height:60px;
font-size:60px;
color:#2772b3;
font-family:"Trebuchet MS";
font-weight:normal;
filter:alpha(opacity=0);
-moz-opacity: 0;
opacity:0;
}

If everything is in order, once you reload your page you should see the logo displayed on top of the Child Theme.

3. Adding a standard top ad banner to your page

For this we’ll use the functions.php file that comes with the Byty Child Theme.

Once you open that file you’ll see the flowing code:

<?php
/* Register Top Add Wiget */
function add_top_ad() {
?>
<div id="top_ad">

<!-- Please add a 728px by 90px Standard Banner -->

</div>
<?php
}
add_action('thematic_belowheader', 'add_top_ad');
?>

In place of < ! -- Please add a 728px by 90px Standard Banner -- > you can add your own Google Adsense ad or leave it unchanged if you don’t what Ads on your site. You can add more ads to your site in the sidebars or in the content of your site through the use of text widgets.

4. Creating css to style plugins that do not display perfectly on your theme

If you have a plugin that isn’t displaying perfectly with the Byty Child Theme I recommend you open wp-content/themes/byty/extra.css and add any other css that you might need in there. This way you have separated files for the theme and your plugins.

As you can see there isn’t that much to say about this and I hope I’ve been clear with my explications.

If you’ve customized or used the Byty Child Theme please let me know! I’m interested to see for what you are using it!

By CristianThis entry was posted in Recomended Reading, Theme Design, Wordpress and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • The sooner the better: You should follow me on twitter here.

10 Comments

  1. Lisa spiritual-web.com
    Posted November 8, 2008 at 6:25 am | Permalink

    Thank you so very much for this site. It explains more that I have been able to find out to date. Written for people just like me – a dumby when it comes to customization of my site.
    I will be visiting often . I honestly think that I have progressed more in the last 5 minutes than in a total of 3 weeks.

  2. Aquarium Keeper saltwateraquariumkeeper.com
    Posted March 21, 2009 at 12:34 pm | Permalink

    I have a new website and I want to use WordPress for it and the Thematic theme plus Byty might be just what I need with a bit of customization.

  3. devnet linux-blog.org
    Posted May 15, 2009 at 12:51 am | Permalink

    So my question is…why doesn’t byty have threaded comments? Did it come out before threaded comments were supported in wordpress?

  4. Terrence F Olsen falonsweightloss.com
    Posted June 5, 2009 at 7:19 pm | Permalink

    Hi thanks for the post. I tried to add the banner as suggested above. I’m using the correct size and it is shifting everything around. Any ideas?

    • Cristi cozmoslabs.com
      Posted June 6, 2009 at 9:28 am | Permalink

      You will have to make some modifications to the css as well. That is because the blog title is to big to allow for a banner to be displayed in the header.

  5. Peg
    Posted October 14, 2009 at 11:12 am | Permalink

    Hi,

    my website, based on the byty template (http://www.femable.com) is not shown correctly with IE 7.0 and below. With IE8.0 its okay, altough the typeface in navigation looks different than in firefox. Any idea what I did wrong?
    Plus: when a page is activated, the menu bar does not stay highlighted. Any idea on that as well?

    Many thanks for you help!

  6. Chris Michael rvhobo.com
    Posted January 1, 2010 at 3:54 am | Permalink

    I really appreciate your Byte theme.

    How would it be possible for me to collapse one sidebar and have the content area larger?

    I’ve searched your website, but have not found any answer.

  7. Posted February 9, 2010 at 6:01 pm | Permalink

    Hi,
    The theme use PNG images which causes problems when using internet explorer 6 which does not support PNG format.
    I can not see the horizentan menu as the header image is not transparent.
    Is there a way to solve it?
    Thanx
    Micha

    • Cristian cozmoslabs.com
      Posted February 9, 2010 at 6:10 pm | Permalink

      The theme doesn’t use png images. However IE6 isn’t supported and I haven’t done any testing for it if I remember correctly.

      I’m afraid I can not / will not help you with IE6 issues. Not supporting IE6 might force users to upgrade to a better browser.

      If IE6 users are a big market share of your website I would recommend you hire a developer to get it fixed for you.

4 Trackbacks

  1. [...] Installing WordPress Child Themes and Customizing the Byty Theme [...]

  2. [...] now you had to either change the header.php file in Thematic (something not really recommended) or use rather ugly CSS tricks to hide the existing content and use your logo or banner as a background for the #header or [...]

  3. [...] Installing WordPress Child Themes and Customizing the Byty Theme [...]

  4. By Developing with Child Themes « 1001 Weblogs on January 15, 2010 at 8:01 pm

    [...] Installing WordPress Child Themes and Customizing the Byty Theme [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Featured Theme

    Smarter Wordpress Theme

    Smarter is a Wordpress theme for small and medium sized companies. It's meant to build a presentation site in a minimum amount of time without touching a single line of code.

  • subscribe

    through RSS

    Or, subscribe via email:

    Enter your email address:

    Follow me on Twitter