Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to GetSimple: how to change Title text?
#2
You are completely right, there is very little documentation on making themes. Mostly because we don’t have so much time to write the docs. Let me try to get you started on this.

I haven’t seen any themes yet that allow for easy changes, you will always have to get into the code.

All the changes you want to do will have to be made in the template.php. If you want to use an image as the logo of your website instead of the text you should edit the HTML in template.php to include an image, there is no better or easier way.

Different colours on different pages can be done in different ways. You could copy template.php and the css file, call them something else and change the CSS file. Then you will have 2 PHP files in the theme folder, template.php and the copy of template.php. You can then choose the copy to be used as the template for certain pages. (The anatomy of a theme is described in the tutorial on creating a theme.)

Another way to change colours per page is by making sure the following piece of code is used for your BODY tag:
Code:
<body id="<?php get_page_slug(); ?>">
This way your BODY tag will have a different ID on every page. You can then use these IDs in CSS (#idofpage) to give different CSS to different pages without having to create a new template file for each page.

Tags like get_site_name() and get_page_slug() are described in the Theme Codex.

I hope this can get you started on GetSimple. Feel free to ask questions here on the forum, there’s almost always someone around willing to help!
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply


Messages In This Thread
New to GetSimple: how to change Title text? - by Zegnåt - 2010-07-15, 08:19:00



Users browsing this thread: 1 Guest(s)