• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Where do I add php code?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Where do I add php code?

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 13 years, 3 months ago by nicole2013.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 16, 2013 at 1:19 pm #28263
    nicole2013
    Member

    I am trying to move my site from Thesis to Genesis.

    I have some php code which I need to move but I am not sure where to move it to:

    This is the code:

    <?php   if (is_page('test')) { // pixenate page tag     include (ABSPATH . '/pixenate/index.php');   }   ?>

    <?php   if (is_page('arrow')) { // pixenate page tag     include (ABSPATH . '/pixenate/arrow.php');   }   ?>

    I tried to paste it into the functions.php as is but it broke the theme. Please let me know where I should put it and if I should add anything to it.

    March 16, 2013 at 1:44 pm #28280
    David Chu
    Participant

    Nicole,

    I'm afraid that there's not nearly enough info for someone to give an answer.  Someone would have to know lots of details about your site, about the Thesis and Genesis themes you're working with, and what that bit of code is supposed to do.

    I will say this... if that code is for a specific Thesis purpose, it may not work at all in Genesis, or it may at least need to be adapted for Genesis.  (that question may even be out of scope for Genesis support)  I actually have worked on Thesis 1.8, and liked it pretty well.  I haven't worked on Thesis 2.0, which has been extremely controversial.

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    March 16, 2013 at 2:36 pm #28290
    nicole2013
    Member

    Thanks for your reply.

    I have a "custom template" which I use on certain pages. When used the php code is inserted into the page. It isn't directly related to Thesis but enables another program to work. I had a Freelancer do it so I am not really sure what it does 🙂 I just know that I need the code to appear in the functions page and need to create a template somehow.

    I also loved Thesis 1.8 and tried to move since I found Thesis 2 too difficult to work with. It seems like it will be too difficult to move so I guess I will just stick with Thesis....

     

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble