• I am a beginner in the wordpress field:)
    I am really interested in designing a theme based on the popular Thematic theme…
    but there is something that is really driving me crazy 😀

    I noticed the action hooks spread everywhere in the theme … I understand that I replace them with a custom piece of code I want

    BUT WHERE ARE THE DEFAULT FUNCTIONS HOOKED TO THEM??

    They must be some where or else how is the theme displaying the content ??? … For example, something like thematic_header() … It is impossible that there is no default code for that right??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter omarelmasry

    (@omarelmasry)

    I didn’t find an answer in the guide … I’ll try the forums … Thnks

    If anyone knows here, answers are still welcomed 🙂

    @omarelmasry – Thematic is great, I use it for all my sites. A great way to find what you’re looking for is to search in folders in your code editor if you have that ability. Then you can search for functions like thematic_header and find the places where it’s reference and originally set. Just like searching for files on your computer for a term in a file… Make sense?

    In this case you’ll want to look in thematic/library/extensions/header-extensions.php

    thematic_header is actually a collection of other functions and markup though…

    Good luck and stick with it, it’s got a fairly steep learning curve but it’s worth it once you “get it”. The themeshaper forums are also a very good resource for tips like this. That’s mostly where I learned everything I knew about Thematic 🙂

    – Jonah

    Thread Starter omarelmasry

    (@omarelmasry)

    thnks everyone

    @jonah : thanks, but I actually tried searching for them, and there are no default functions found … that’s why I’m asking …

    I guess that they are hidden someway 😐

    First of all, 3aaamel eh ya MASRYYYY 😀

    Now that that’s out of the way, thematic_header() is obviously a function, so clearly it is calling it from somewhere. I’m still a beginner to WP, but I do know code. Look through the theme files in the editor to try and find where thematic_header() is defined. If it’s not then it must be pre-defined in the WP API.

    Thread Starter omarelmasry

    (@omarelmasry)

    el7amdolellah 🙂 🙂

    I tried searching in the whole website folder, can’t find it …

    However, I am starting to learn well about thematic techniques, and I guess it doesn’t really matter to find the defaults … Just adding and removing with actions does everything … shokrann 🙂

    Guys, you must have missed this, it’s in: thematic/library/extensions/header-extensions.php

    I think thematic_header() is just a placeholder hook that a bunch of other functions hook into though…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Understanding Thematic theme’ is closed to new replies.