ThemeShaper Forums » Acamas

Create own functions.php

(4 posts)
  1. Ben W.

    Hey there,

    I wonder if it's possible to have an own functions.php so I don't have to modify the one from Acamas?
    That way I'd make sure to not break anything, avoid problems when upgrading Acamas etc.

    Is that possible?

    Thanks in advance for an answer.

    - Ben

    Posted 10 years ago #
  2. Ben -

    You can only have one functions.php per theme. But inside the Acamas functions.php you can include or require another php file. The best place to save your custom functions file ,so that it won't get overwritten or throw an error in wp-admin as a broken theme, would be in the wp-content directory. So you could add this to your Acamas functions.php.

    require_once(STYLESHEETPATH . '../../../lib/my-acamas-functions/my-functions.php');

    Then make a folder in the wp-content directory named my-acamas-functions and save all your functions to a file named my-functions.php. Find out more about require_once


    Posted 10 years ago #
  3. Ben W.

    Hey Gene,

    thanks for an answer, That should do the trick and maintanable in case of an Acamas update.
    Might be a feature suggestion for future versions.


    - Ben

    Posted 10 years ago #
  4. Hi Ben, hi Gene,

    will do some tests.


    Posted 10 years ago #

RSS feed for this topic


You must log in to post.