Enter your keyword

Thesis Theme: Introducing The Custom CSS and Custom Functions Files

Thesis Theme: Introducing The Custom CSS and Custom Functions Files

The custom files can be found at wp-content-->themes-->thesis-->custom. If you have Thesis 1.5 or 1.5.1, then it is thesis_15 or thesis_151 instead of Thesis.

People, the time has come to take the plunge. The plunge where? Into the fancy schmancy customization that you could be doing, right now, if you only knew how to use the custom.css and custom_functions.php files in your Thesis installation. Now, if you don’t use Thesis, don’t despair–all of the lessons we are learning about how to use css can be transferred to other blogging platforms. You will just have to jerryrig and retrofit to suit your format once we get into the nitty gritty of CSS. If you do have Thesis, though, you need to learn about these two different files because they are what is going to make your customization attempts as effortless as possible.

Broad Strokes Introduction To Thesis Structure
So, you already know that Thesis has a lot of on-screen options for customizing. This can help you do things like change the default font and font size, decide how many teasers to use, and switch betweent a one-, two- or three-column format for the theme. But what if you want to do things like change the color of the default font? Or change the location of the navigation bar? Or change the header pic? These things cannot (yet) be changed with the simple point and click interface on Thesis. You have to use the custom files.

Custom.css
Custom.css is the file that keeps all of your own customizations to the style sheet of your website. The way you can think of things to be changed by using the custom.css file is that they are questions of style rather than function. Yeah, I know, that sounds stupid, but it gets more complicated when you’re in the midst of changing stuff, trust me. Things that can be changed with this file are basically divorced from the technical functioning of your site, they only have to do with how it looks. So you could, for example, make your comment link smaller or remove the brackets, or change the way a url looks (take out the underline, add bold, etc.), or change the background color of a part of the site with custom.css. In certain situations, you can also tell things not to display with CSS, but it doesn’t work the other way–you can tell the navigation menu not to display when you don’t want it somewhere, but you cannot just make a navigation menu appear solely with css.

Custom_functions.php
Custom_functions is where you alter your site with actual structural changes, e.g. change where the navigation appears, change where the widget appears, change what happens when the website calls up the header. Generally speaking, if you want to move elements around or add a new element, you have to create a custom function for it. Back in the olden days, you could do this only by changing the core theme files, which seems like a small distinction, but after you’ve upgraded to new versions of software enough times, you will be able to appreciate why having a custom_function files is really great. You can update all of your files–both for new versions of wordpress and for new versions of Thesis–without having to worry that the changes won’t carry over. That’s why you always want to use these files to make changes. They are easily reversed, and easily saved between changes in the software that will happen (inevitably) later down the road.

In the coming weeks, I’ll give you a bunch of tutorials on how to change specific things on your thesis-themed website. For now, just figure out where your files are. You can use Fetch to find yourblogsurl.com/wp-content/themes/thesis_15/custom/ and there you will see the files. Find them, and start thinking about the changes you want to make to your site. Are they structural, or style questions, primarily? Are they things that concern how information appears, or where it appears? The answers to these questions will be key to figuring out what you want to do with your site.

Comments (5)

  1. Jul 13, 2010

    I am in the process of trying to migrate multiple blogger dog blogs over to one WordPress Thesis site with multiple blogs (like yours). My head is about to explode as I cannot find information on how to do this anywhere, probably because I’m not using the correct terminology.

    If this plea for help goes unheard, I will try email as the next step.

    Can I also just add that much as I truly appreciate all your work and explanations, I just hate it when someone technologically more advanced then me says stuff like “you can use Fetch to find yourblogsurl.com/wp-content/themes/thesis_15/custom/ and there you will see the files. ” What the hell is Fetch? And why do you think I have a clue about this.

    I really hope that doesn’t make me seem ungrateful although I suspect it does.

  2. Jul 13, 2010

    I explain what Fetch is here: http://abdpbt.com/tech/2009/06/18/ftp-how-to-upload-new-files-to-your-blog/

    It’s just an FTP program, so if you’re not using a mac, you might have a different program. Or you might use your control panel through your web host. It’s what allows you to upload and download files to the host.

    Incidentally, I am sticking with a multiple install of wordpress for the time being because my host doesn’t allow a MU/WordPress 3.0 install unless you have a dedicated server, and I’m not quite at that traffic level yet. I went through all of the steps only to figure out that they didn’t allow it, so you might want to check with your webhost and see if they allow that kind of install before you go any further.

  3. Jul 13, 2010

    Thanks for that — and so fast!

    I put off this transfer for a long time because I really didn’t want to spend hours/days on this stuff.

    For example, I don’t know the difference between a multiple install of WordPress and an MU/Wordpress 3.0 Install although I was starting to figure out that WPMU might have something to do with what I wanted.

    Frankly, I thought I could just create subdomains or subdirectories in WP and import the Blogger blogs.

    Was that naive? Am I a candidate for ABDPBT Tech services?

    Thanks again. I truly appreciate it.

    AnnB

  4. Jul 13, 2010

    You can do that with subdomains, that’s what I have right now. The difference is that WordPress Mu/3.0 allows you to do it all through one dashboard, whereas you have to use four different dashboards (or however many, for however many blogs you have) if you use the multiple install model. This means that any time there’s a software update or a change in design, you have to change it on all four sites, which is annoying. But technologically, it can do pretty much everything you want to do.

    What you would do is just install wordpress into subdomains. Like I have one install at the main domain, one in the /personalfinance folder, one in the /tech folder, and one in the /commodityfetishism folder. Then you import the blogger blogs into those. If your host allows you to do the MU/3.0 thing, that will be easier in the long run, but it will take a little bit more work to set up in the beginning.

  5. Jul 13, 2010

    Thanks so much. I am going to try the multiple install. If I fail, I’ll hire ABDPBT Tech Services.

    How hard do you think it would be to transfer to MU/3.0 at some time in the future?

Post a Comment

Your email address will not be published.