ThemeShaper Forums » Thematic

[closed]

functions.php NOT working

(4 posts)
  • Started 12 years ago by allenjcochran
  • Latest reply from allenjcochran
  • This topic is not resolved
  1. I created a child theme for Thematic... first let me say it was great and the information on the web about customization is fantastic... however... I'm having a problem.

    When I add any functions to my functions.php file, they A) do not work and B) show up in text form at the top of my website. Can anyone tell me why that is and how to fix it?

    Posted 12 years ago #
  2. Allen, can you post the contents of you functions.php file in here? Enclose the code with the back tick ` symbol.

    Posted 12 years ago #
  3. if they show up in text form they must not be properly enclosed in <?php brackets

    functions.php must open w/ <?php

    <?php
    
    function show_bacon(){
      echo " bacon here! ";
    }
    add_action('thematic_belowheader','show_bacon');
    
    ?>
    Posted 12 years ago #
  4. Thanks! I figured it out. It worked perfectly.

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.