Tag: Child Theme

  • Including code in WordPress Child Themes

    Including code in WordPress Child Themes

    by

    A project of even moderate size easily builds up quite a few items in it’s functions.php file. Even when working on a child theme I find that it’s not uncommon to need to add a custom admin panel or a custom post type. There is another gotcha in child themes though. Typical code samples that…

    Read More →

  • Adding Scripts – WordPress Child Theme Gotcha

    Adding Scripts – WordPress Child Theme Gotcha

    by

    While converting a heavily customized premium theme into a proper WordPress child theme I came across a gotcha in WordPress. If you look at the WordPress Codex information on adding scripts to your theme all of the code samples tell you to find the script by using get_bloginfo(‘template_directory’); Unfortunately if you’re dealing with a child…

    Read More →