0
Welcome Guest! Login
0 items Join Now

Extend functions.php

  • Extend functions.php

    Posted 9 years 9 months ago
    • Is there a supported way to add functions to functions.php? I'm assuming that editing the exiting file in my theme directory is a bad idea. Is there some convention for creating a file that the theme will pick up, or do I have to do the whole bit of creating a child theme to do this?

      Thanks,

      -Rob
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22268
    • Thanks: 3224
    • messin' with stuff

    Re: Extend functions.php

    Posted 9 years 9 months ago
    • I'm not a PHP dev by any stretch... but looking through some other posts around here, yes, it seems like the Theme's functions.php file is the place to put custom stuff... you'll want to be sure and back it up prior to upgrading the theme though down the road as it will get overwritten when upgrading.
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Extend functions.php

    Posted 9 years 9 months ago

Time to create page: 0.073 seconds