Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

You can include custom PHP code in your pages in a couple ways…

Including code at the page configuration level

Step 1: Create your code block

  1. In this case, I recommend using a plain text block for your code. In the Add Content menu, select Block > Basic > Text Block.

    add text block menu item
  2. Add you code as the text block content.

Be sure to wrap your code in the correct code section tags!

→ More: Code Sections on the Hannon Hill Knowledge Base

Step 2: Add your code to the page configuration

  1. Edit the desired page.

  2. Select the Configure tab.

    configure tab
  3. Select the php output.

    php output
  4. In the CODE region, use the asset selector to select your code block.

    choose block for the code region

You can leave the format selector empty

Including code within the page content

  • No labels