Understanding Thematic theme (8 posts)

  1. omarelmasry
    Posted 4 years ago #

    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 :D

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


    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??

  2. esmi
    Forum Moderator
    Posted 4 years ago #

  3. omarelmasry
    Posted 4 years ago #

    I didn't find an answer in the guide ... I'll try the forums ... Thnks

    If anyone knows here, answers are still welcomed :)

  4. jonahcoyote
    Posted 4 years ago #

    @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

  5. omarelmasry
    Posted 4 years ago #

    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 :|

  6. stridexr
    Posted 4 years ago #

    First of all, 3aaamel eh ya MASRYYYY :D

    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.

  7. omarelmasry
    Posted 4 years ago #

    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 :)

  8. jonahcoyote
    Posted 4 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic