Entries Tagged as ''

Change WordPress Header Font Size And Color

Changing the font in the header of WordPress blog theme can be done if you know what files to edit. However the code to edit can (and will) vary in all themes. This WordPress guide will help you figure out what code your header is using to call for the blog name and description and how to edit it.

The first step is to make your WordPress theme’s files writable. To do that you must change the permissions in your hosting account. I suggest connecting to your hosting account with an FTP client, and browse to the theme and change the permissions on the whole theme’s folder and all the files within it to 777. Otherwise you may need to change one file at a time if doing so in the control panel of the hosting account. The path to the theme is the blogs directory then wp-content/themes/your-theme. You could just make the whole themes folder writable.

From within the WordPress dashboard, click Presentation or Design, then Theme Editor. Almost all theme editing is done in the stylesheet (style.css) file, and all other files are just displaying the settings that are specified within the stylesheet. There are exceptions to this but beyond the scope of this WordPress guide.

WAIT!!! Before doing any editing copy the contents of the file and paste it into a text file like Notepad for safe keeping before you attempt to edit it. If you screw things up you can paste the original back in to restore your file. Remember this is extremely important and I take no responsibility for what you may do to your WordPress blog!

On the right side of the Theme Editor are all the files associated with your active theme. Finding the correct code to edit to change the font of the header is in the header.php file. While you don’t need to edit this file the clues to what the header is calling for from the themes stylesheet can be found in the header.php file. Below is the code from the header file found in the default theme.

<div id=”header”>

<div id=”headerimg”>
<h1><a href=”<?php echo get_option(’home’); ?>/”><?php bloginfo(’name’); ?></a></h1>
<div class=”description”><?php bloginfo(’description’); ?></div>

The code between the <h1> tags is the clue we are looking for that calls up the name of the blog. The blog name in the header is styled by the <h1> tags, and the description is being called from the <div class=”description”>. Now that we know what is styling these two items we can edit the style.css file to change the way these two items are displayed. Remember that this case is specific to the WordPress default theme and you need to look at your specific themes header file to determine what code you need to work with. In most cases the <h1> tags call up the blog name but the description or Tagline can be called almost anything.

Now click the themes style.css file on the right side of the Theme Editor and look for the code from the header file. In this case it is

h1 {
font-size: 4em;
text-align: center;
}

#headerimg .description {
font-size: 1.2em;
text-align: center;
}

If you want to change the color additional styles can be added like this:

#headerimg .description {
font-size: 1.2em;
text-align: center;
color: #666666;

}

The h1 code and description can now be changed to a larger size or aligned differently, it can be aligned to the left, right or kept centered. The font color can also be changed by adding this code color: #666666; and changing the color code number to your liking. Make your changes and click Update File, then look at your blog to admire your work. You may need to refresh your browser to see any changes. There are numerous css styles that can be applied to the text in a stylesheet, far to many to place in this post. For css color codes check out CSS Color Chart or Google css color codes. For more styles that can be applied, a quick Google search for css font styles, can keep you busy experimenting for hours.
Thanks to Stephen from The Lazy Way To Buy And Sell Cars blog who asked for this guide and a million other questions on Ask Max

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!


Tagged with , ,


Related Posts



How To Upload Plugins WordPress Guide

plugin2.jpgSome of the most common tasks for those of us who do it every day can be quite frustrating for others trying it for the first time. Uploading WordPress plugins can be one of those things that newbies find frustrating. I have had people ask here on the site and I see it in forums quite often. Someone will upload a plugin but it doesn’t show up in the dashboard. This WordPress Guide will walk you through the process of uploading a WordPress plugin and how to know when to upload the whole folder or a single file.

You should first read any installation instructions on the plugins site if available. Next download the plugin into a folder on your computer that you can find easily. I have a WordPress folder in my documents and in that I have other folders for themes and plugins. I like to keep the things that I can control organized. Then unzip and extract the plugin into the same folder.

plugin3.jpg

plugin4.jpg

 

This is the part that can confound the newbies so pay attention! Knowing what to upload depends on what you find within the extracted folder. Usually there is a folder within a folder and within that folder is either a single file ending in .php (there may also be a readme text file that does not need uploaded) or several files and maybe even several files and other folders. It all depends on the function on the plugin and how it was coded. Usually uploading the extracted folder will not work and you must keep opening the folders until you see if there is only one file or a group of files. The examples below show what I mean.

This first example shows that there is a folder within the extracted folder and within the second folder is the actual file to upload into the plugins directory.

plugin5.jpg

The next example shows a WordPress plugin with multiple files. Upload the entire folder one level up from the multiple files.

plugin62.jpg

Now you know what to upload but where do you upload them too? When you connect to your site with an FTP client, like FileZilla browse to the location of the WordPress files. Getting there depends on your hosting account. You will usually not see the root of your domain first when connecting. You should look for the www or public folder, then you may even see multiple domains (if you have them). Look for the directory your WordPress files are in and then find the wp-content folder and finally within that the plugins folder. You can see the full path for WordPress installed in the blog directory in the image below:

plugin7.jpg

After uploading the plugin go to the plugins panel and activate it. Now that you know how to do it this way how about a plugin that installs WordPress plugins and themes right from the dashboard? OneClick does just that and will work in most cases but if you have a highly functional plugin with multiple files and folders you still may need to resort to this method.


Tagged with , , ,


Related Posts



WordPress 2.5 Dashboard Video Guide

There have been significant changes in the WordPress dashboard for version 2.5. most of them are visual with a few additional enhancements. One of the big changes is in the write post panel and additional functionality in the visual editor toolbar. This WordPress video guide covers the major changes in the dashboard and shows how to upload images and wrap them within the text of a WordPress Post.


Tagged with , ,


Related Posts



WordPress To Run Your Website

Too often I get contacted by people who just spent a lot of either time and money to get a static HTML website setup who then want a WordPress blog theme to match their nice new website. Or those that want to start a website and then add a blog that will match. My question is always why? Why bother with both when WordPress can do it all?

Here is a list of things WordPress can do that you may want to know before you dump all that time and money into a static website with a blog added onto it.

 

  • You can use a static front page with WordPress. With this option and WordPress setup on the root of your domain, your main website page will look just like the blog.
  • You can create a different page template for the main or front page of your site that looks completely different than the blog. For example you can create a page template without the sidebar or a sidebar different than the blog.
  • You can add static pages just as easily as adding a blog post
  • You can use the WordPress Links menu or what was called the Blogroll as your site navigation. Instead of showing the Pages of your site keep them off the sidebar and add links to your static pages in the Links menu under the category of your choice.
  • Changing the look or theme of your WordPress Powered Site is very easily done with a few mouse clicks. No need to manually change every page because the content of your site is held within a database. Your WordPress theme isn’t tied to the pages or posts.
  • Additional functionality can be added using plugins. If there is something you want your WordPress site to do, chances are a plugin is available for it. For example a forum can be added by uploading the plugin and activating it.

The advantages of using WordPress to power a website are obvious once you understand the workings of WordPress and the power it has. If you are willing to learn how to customize WordPress to fit your needs all it takes is some time searching online. If it seems a bit intimidating to you there are many freelancers online that can set it up. Either way there are not many reasons to pay to have someone create a static HTML template and then another to match a WordPress theme to it. That in my opinion is spending money twice on the same thing and really putting the cart before the horse.


Tagged with


Related Posts



Close
E-mail It