Summary

  • Overview
  • Adding PHP Element To Pages
  • PHP Element Options
    • Align, Size, Margins
    • Code
    • Other Options

PHP Element Overview

PHP Element allows adding the PHP code into the page to integrate the desired elements and functionality that are not available in the application.

php-overview.jpg

You can insert the PHP code into the PHP Element used in the WordPress and Joomla Themes.

IMPORTANT NOTES

  1. You will NOT see the rendered PHP code if you export the HTML site.
  2. You will see the rendered PHP code only after publishing the site in your CMS.
  3. Nicepage Team IS NOT responsible for the external code inserted into the page and for the functionality it should provide. If the code is not working, please get in touch with the code vendor for the details as we only allow to embed the code on the page.

Adding PHP Element To Pages

You can add the PHP Element to any Block from the Element menu.

php-add.png

PHP Element Options

In the Property Panel to the right, you can modify different properties of the PHP Element.

Align, Size, and Margins

Use the Align properties to position the rendered content within the Element and the Width and Height properties to resize the Element. Margins can set the spacing for the PHP Element from the other Elements.

php-options-1.png

Code

Use the Code field to insert the required PHP code. You can expand the window to the screen width by clicking the Expand icon at the top right corner appearing on hover.

php-options-2.png

Other Options

You can also select some default options for this Element as well, such as Background, Border, Transparency, Animation, Custom CSS Class name, and also specify the desired Mobile Views to hide this Element if needed.

php-options-3.png

## Summary - Overview - Adding PHP Element To Pages - PHP Element Options - Align, Size, Margins - Code - Other Options ## PHP Element Overview PHP Element allows adding the PHP code into the page to integrate the desired elements and functionality that are not available in the application. !php-overview.jpg! You can insert the PHP code into the PHP Element used in the WordPress and Joomla Themes. **IMPORTANT NOTES** 1. You will NOT see the rendered PHP code if you export the HTML site. 2. You will see the rendered PHP code only after publishing the site in your CMS. 3. Nicepage Team IS NOT responsible for the external code inserted into the page and for the functionality it should provide. If the code is not working, please get in touch with the code vendor for the details as we only allow to embed the code on the page. ## Adding PHP Element To Pages You can add the PHP Element to any Block from the Element menu. !php-add.png! ## PHP Element Options In the Property Panel to the right, you can modify different properties of the PHP Element. ### Align, Size, and Margins Use the Align properties to position the rendered content within the Element and the Width and Height properties to resize the Element. Margins can set the spacing for the PHP Element from the other Elements. !php-options-1.png! ### Code Use the Code field to insert the required PHP code. You can expand the window to the screen width by clicking the Expand icon at the top right corner appearing on hover. !php-options-2.png! ### Other Options You can also select some default options for this Element as well, such as Background, Border, Transparency, Animation, Custom CSS Class name, and also specify the desired Mobile Views to hide this Element if needed. !php-options-3.png! ##