Page 1 of 1

Adding php program to a site and layout grid

Posted: Sun Jun 14, 2026 8:31 pm
by galatai
Just wondering whether there is a quick way to insert a php program (menu) onto a site within a specific layoutgrid. I have a menu and large site and only want to change the php instead of re-publishing the whole site and changing the master page. If I change the php menu then the whole site (60+ pages) wil be changed. Have tried several ways but not successful so far!
Any assistance appreciated... Thanks

Re: Adding php program to a site and layout grid

Posted: Sun Jun 14, 2026 9:54 pm
by BaconFries
You can add scripts (custom) such as php using the following
Adding HTML, Javascript or PHP to a web page
You can use one of the following to be able to use one object ie your menu on multiple pages and if it requires updating you only do it once and the changes will be made to all
How to use Master Frames?
How to use Master Pages?
How to use Embedded Pages

Note if using PHP then will not be able to preview locally you will need to publish first to see the results.

Re: Adding php program to a site and layout grid

Posted: Sun Jun 14, 2026 10:40 pm
by galatai
Thanks but this is not what I am after... I need to place a php install command and then the webpage (.php) at a certain point on a page within a layoutgrid

Re: Adding php program to a site and layout grid

Posted: Mon Jun 15, 2026 5:54 am
by Pablo
Are you asking to change the extension of the page to PHP?
You can do this for each page individually in the page properties.

After changing the page extension. You will need to republish the page and all pages that are linking to that page.

Re: Adding php program to a site and layout grid

Posted: Mon Jun 15, 2026 6:32 am
by AliGW
If I understand correctly, the OP wants to have a PHP-driven menu appear on a page in an iFrame. By doing this, they hope to be able to limit the amount of uploading when changes are made to that menu (it would only require an upload to the page displayed in the IFrame). The OP doesn't want to use a master page, as that means republishing all pages associated with that master page when something changes.

Hope I have interpreted the requirement accurately.

Re: Adding php program to a site and layout grid

Posted: Mon Jun 15, 2026 9:10 am
by galatai
Thanks for all the input. I do not want to use an iframe - I have done this and it does not work due to iframe restrictions. I need to put the php install part into a layoutgrid so that it is flexible enough. The coding would be <?php install ('https://.....') ?> and that is all I need to do but apart from hand coding it into the site once published there does not appear to be a solution. Have tried adding it as html to a grid but this fails miserably! I realise that WYSIWYG webbuilder is not an html editor as such but there must be a way of putting this coding in. The main reason for doing a menu this way is so that different pages can have different options when they are called and can be changed extremely easily with a little php coding. If there is another way then please suggest without publishing the site every time there is a change (60+ pages). Thanks for responses to this.

Re: Adding php program to a site and layout grid

Posted: Mon Jun 15, 2026 11:08 am
by Pablo
You can use a HTML object to include PHP code into a Layout Grid.

If this does not work then the code is either incorrect, incomplete or it conflicts with other code on the page.
Any code that woks elsewhere will also work in WWB.

Re: Adding php program to a site and layout grid

Posted: Mon Jun 15, 2026 11:25 am
by BaconFries
I realise that WYSIWYG webbuilder is not an html editor as such but there must be a way of putting this coding in.
As previously mentioned by myself and now by Pablo you can add scripts (custom) such as php using the following (HTML Object)Adding HTML, Javascript or PHP to a web page then simply insert into the Layout Grid as you would any other object(s)