ThemeShaper Forums » Thematic

Can one edit the .php files within the child theme?

(5 posts)
  • Started 2 years ago by jbtank
  • Latest reply from jbtank
  • This topic is not resolved
  1. jbtank
    Member

    It seems that it'd be must easier for me to get some UI things done, by duplicating and editing certain php template files from the Thematic theme to the child theme in order to preserve the Thematic parent theme and allow me to do this in a way I'm more competent in than by bringing chunks of code into the functions.php file and replacing there.

    So is there a way to do this as the css in the child theme is done? I.e. can you link to a child .php file and override the parent as we can with css? If so, how?

    And also, if you can, is this just a bad idea and should I just figure out how to bring in the code that needs editing and bring it into the functions.php and replace it there? Is that the best practice?

    Sorry if I'm missing something obvious and thanks!

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    THE STORY

    I need to edit some of my nested sidebar lists and edit some of the code to use some jquery and/or mootools fx. I've had this working before in a non-child theme using mootools, but on this attempt—so far, so bad. It's getting complicated for me to do this since it is involving plugins (recent posts, twitter, and some others), widgets, AJAX (jquery or mootools), and the Thematic framework. So, a lot of elements to consider, which leads me to think that directly editing some of that code might be the way to go although at the same time seems to undermine the framework concept.

    SPECIFICALLY

    I want the aside to have Categories, Recent Comments, Recent Posts, and Twitter to be collapsable and have the sublists show when they are clicked upon, additionally I want to get fading background colors on all links. Doesn't seem like these 2 things should be too difficult, but I'm having trouble getting this to work at all.

    Any advice as to how to proceed/best practices/words of wisdom are very much appreciated.

    Posted 2 years ago #
  2. amygail
    Member

    Hi jbtank.

    You can copy any of the templates from the parent theme to the child theme and edit those.
    (page.php, single.php etc)

    you can also create your own custom page templates.

    There's a ton of info out there on working with child themes. The sticky posts on this forum are a good start as is searching the forum with your questions.

    I highly recommend this series:
    http://themeshaper.com/modify-wordpress-themes/

    He's also got a lot of info specific to Thematic

    Posted 2 years ago #
  3. jbtank
    Member

    Duh... I feel stupid.

    I thought I had tried just copying them into the child theme, but apparently not. Simple as that. I was thinking I needed to reference that somewhere. Thanks!

    Posted 2 years ago #
  4. amygail
    Member

    Don't feel stupid - it's really easy to over-think this.
    I should know ;-)

    Posted 2 years ago #
  5. jbtank
    Member

    So, a year later I'm having problems with the same thing. I want to edit the 'thematic/library/widgets-extensions.php' file within my child theme. So I duped that file into 'mychildtheme/library/widgets-extensions.php', but it doesn't override the parent version. What is the proper way to do this?

    Thanks!

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.