Adding code snippets to your theme's functions.php file

Documentation Menu

Adding code snippets to your theme’s functions.php file

Theme Functions (functions.php) is the main file to add your custom code (in PHP language) to customize and/or change the behavior of the theme or any plugin.

To add your code to functions.php go to:

  1. WP Admin
  2. Appearance
  3. Theme Editor
  4. Select the Theme Functions (functions.php) file from the sidebar on the right.
  5. Add in your code at the bottom of the page (before the PHP closing tag ?> if this is present)
  6. Click Save Changes

If you cannot see the Theme Editor menu item, it is probably disabled by a security plugin or by your hosting provider. You can try using a plugin for adding code snippets.

Was this article helpful?

Yes (4) No

We're sorry to see this article wasn't as helpful as we hoped it would be. Please let us know what you were looking for so that we can improve this documentation page.

Start accepting online
bookings today

Check out our live demos or Buy Now now.

Full CTA BG
Is WP Booking System a good fit for you?

Tell us about your business activity & plugin requirements and we'll let you know if WP Booking System is right for you.

Have a support question? Please use this form instead.