ThemeShaper Forums » Thematic


Do I need to create a category.php in my child theme ?

(5 posts)
  • Started 10 years ago by Bluesky
  • Latest reply from Bluesky
  • This topic is resolved


  1. Bluesky

    I am creating my own child theme from Thematic.
    Question : Some plugins that I just installed require to add some php code to the loop in the category.php
    In the category.php , I can not see any loop....
    Do I have to create my own category.php file ?
    If yes, how can I be suure it won't ovverride the Thematic category.php ?

    Posted 10 years ago #
  2. Bluesky

    Well...Night always bring some refreshment
    SO :
    I edit this with the following suggestion that might answer my own problem :

    • I do not create the category.php
    • I let the category.php file in the Thematic folder
    • I just edit the functions.php that I created in my Child Theme folder and keep modifying it each time I need to customize my theme...

    Am I right ?

    Posted 10 years ago #
  3. you can modify the category loop from your functions file. If you are using then you can just define the function childtheme_override_category_loop().

    Posted 10 years ago #
  4. Bluesky

    Yes, Tx, but :
    There is no category loop in the TH. functions.php. Its structure does not allow that.

    The only loop is in content-extension.php located in extensions...

    Btw,I use Thematic

    Posted 10 years ago #
  5. Bluesky

    Well, the solution resides in the following and excellent thread

    My purpose was to insert a thumbnail in the categories...The plugin get-the-image is excellent, flexible and quite powerful.

    So Thematic + Get The Image + the thread above = SUCCESS


    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.