This link has been bookmarked by 92 people . It was first bookmarked on 02 Dec 2008, by Kim Woodbridge.
-
29 Dec 10
-
24 Dec 10
barnishthesis_hook_header
-
18 Oct 10
-
19 Jul 10
-
18 Jul 10
-
How to Use Hooks without Learning Japanese
Hooks are basically each section of your theme separated into a single part as well as ways to define areas before and after those parts. Your header is controlled by one hook (thesis_hook_header) while you can use other hooks to put any code you choose before (thesis_hook_before_header) of after (thesis_hook_after_header). Every area has a hook and most areas also have hooks that will allow you to place things before or after them. Instead of the PHP code appearing on the actual page, only the call to the hook that says “put what’s in this hook here” does.
-
Hooks are basically the various parts of your blog, and functions are things that appear within them so to speak.
-
First things first, never change or edit existing hooks or functions. If you’re looking for the file that contains the core hooks or functions to change them, stop in your tracks. Unless you’re a programmer by trade, you will only risk messing something up by touching them. You never change existing hooks or functions in the core files – you simply add additional functions or replace existing functions with new ones.
-
Thesis will check your custom_functions.php for instructions and cross reference it so to speak with the core files. If you have removed a core hook or added an additional hook in the custom_functions.php file, then it will override the commands in its core files. (I’m no programmer folks and have already given you my disclaimer on using proper technical terminology to describe this above.)
-
-
25 Jun 10
-
24 Jun 10
-
Hooks define where stuff appears and functions define what stuff appears.
-
-
05 Jun 10
-
27 May 10
-
24 May 10
-
If you’re scared of that tutorial, confused and can’t follow these instructions:
1. construct a simple function to house your custom HTML
2. tell Thesis where to place your custom code by specifying the appropriate hook -
How to Use Hooks without Learning Japanese
-
Hooks are basically the various parts of your blog, and functions are things that appear within them so to speak.
-
-
21 May 10
-
17 May 10
-
15 May 10
-
14 May 10
-
12 May 10
-
22 Apr 10
-
05 Apr 10
-
28 Mar 10
-
23 Mar 10
-
18 Mar 10
-
07 Mar 10
Antonio Salgado Leinerthis is way cool
-
19 Feb 10
-
17 Feb 10
-
12 Feb 10
-
30 Jan 10
-
25 Jan 10
-
22 Jan 10
-
09 Jan 10
-
23 Dec 09
-
02 Dec 09
-
26 Nov 09
-
21 Nov 09
-
24 Oct 09
-
17 Oct 09
-
24 Sep 09
-
13 Sep 09
-
31 Aug 09
-
02 Aug 09
-
01 Jul 09
-
30 Jun 09
-
22 May 09
-
16 Apr 09
-
15 Apr 09
-
14 Apr 09
-
06 Apr 09
-
31 Mar 09
-
14 Feb 09
-
16 Jan 09
-
07 Jan 09
-
12 Dec 08
-
02 Dec 08
-
28 Nov 08
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.