# Insert Code on Top of the Page not works

**URL:** <https://forums.realmacsoftware.com/t/insert-code-on-top-of-the-page-not-works/55603>\
**Category:** Elements\
**Created:** [April 9, 2026, 9:48am UTC](https://forums.realmacsoftware.com/t/insert-code-on-top-of-the-page-not-works/55603 "2026-04-09T09:48:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![romacasa](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@romacasa](https://forums.realmacsoftware.com/u/romacasa)\
**Post date:** [April 9, 2026, 9:48am UTC](https://forums.realmacsoftware.com/t/insert-code-on-top-of-the-page-not-works/55603/1 "2026-04-09T09:48:06Z")

</div>

Hello,

I have a project where the following code should appear at the very beginning of the page:

Unfortunately, inserting it into “Edit Extra Code → \</\>Page Start” doesn’t work. See the images. It would also be good if this could be done more globally.

```auto
<?php session_start();
$webyep_sIncludePath = "./";
$iDepth = 0;
while (!file_exists($webyep_sIncludePath . "webyep-system")) {
	$iDepth++;
	if ($iDepth > 10) {
		error_log("webyep-system folder not found!", 0);
		echo "<html><head><title>WebYep</title></head><body><b>WebYep:</b> This page can not be displayed <br>Problem: The webyep-system folder was not found!</body></html>";
		exit;
	}
	$webyep_sIncludePath = ($webyep_sIncludePath == "./") ? ("../"):("$webyep_sIncludePath../");
}
if (file_exists("${webyep_sIncludePath}webyep-system/programm")) $webyep_sIncludePath .= "webyep-system/programm";
else $webyep_sIncludePath .= "webyep-system/program";
include("$webyep_sIncludePath/webyep.php");?>

```

before /

 ![RapidBug](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/f/9/f977fa3c3fe82927ced000cf7055cff57289c967.png)

after

 ![RapidBug2](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/c/c/cc47c3e1a6a447d256b6fa3454dff4402fd1e3e1.png)

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [April 9, 2026, 11:52am UTC](https://forums.realmacsoftware.com/t/insert-code-on-top-of-the-page-not-works/55603/2 "2026-04-09T11:52:55Z")

</div>

You can add code globally in the Site Project Settings 🙂

 ![CleanShot 2026-04-09 at 12 .52.11@2x](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/a/a/aa85d2be421f5876cc56055bd5198b1fd78cdc97.jpeg)

---

<div class="post-metadata">

**Author:** ![romacasa](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@romacasa](https://forums.realmacsoftware.com/u/romacasa)\
**Post date:** [April 9, 2026, 7:44pm UTC](https://forums.realmacsoftware.com/t/insert-code-on-top-of-the-page-not-works/55603/3 "2026-04-09T19:44:25Z")

</div>

Thanks, but:

 ![RapidBug3](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/5/1/5107e16933d02983fefc1eeba2f8469eef7a6029.jpeg)

and that is the result (index.php):

```auto
<PHP 
session_start();
$webyep_sIncludePath = "./";
$iDepth = 0;
while (!file_exists($webyep_sIncludePath . "webyep-system")) {
	$iDepth++;
	if ($iDepth > 10) {
		error_log("webyep-system folder not found!", 0);
		echo "<html class="scroll-smooth" lang="de" dir="">
 <head>
  <title>WebYep</title>
  <link rel="stylesheet" type="text/css" media="all" href="rw/styles/consolidated.css?rwcache=797456443" /> 
 </head>
 <body class="bg-reddark-600">
  <b>WebYep:</b> This page can not be displayed 
  <br />Problem: The webyep-system folder was not found!"; exit; } $webyep_sIncludePath = ($webyep_sIncludePath == "./") ? ("../"):("$webyep_sIncludePath../"); } if (file_exists("${webyep_sIncludePath}webyep-system/programm")) $webyep_sIncludePath .= "webyep-system/programm"; else $webyep_sIncludePath .= "webyep-system/program"; include("$webyep_sIncludePath/webyep.php"); ?&gt;    
  <script defer src="rw/elements/com.realmac.corepack/alpine-collapse.js?rwcache=797456443"></script> 
  <script defer src="rw/elements/com.realmac.corepack/alpine-focus.js?rwcache=797456443"></script> 
  <script defer src="rw/elements/com.realmac.corepack/alpine-intersect.js?rwcache=797456443"></script> 
  <script defer src="rw/elements/com.realmac.corepack/alpine-ui.js?rwcache=797456443"></script> 
  <script defer src="rw/elements/com.realmac.corepack/alpine.js?rwcache=797456443"></script> 
  <script src="rw/elements/com.realmac.corepack/smoothscroll.min.js?rwcache=797456443"></script> 
  <script src="rw/elements/com.realmac.corepack/gsap.min.js?rwcache=797456443"></script> 
  <script src="rw/elements/com.realmac.corepack/ScrollTrigger.min.js?rwcache=797456443"></script> 
  <script src="rw/elements/com.realmac.corepack/gsap-effects.js?rwcache=797456443"></script> 
  <meta charset="utf-8" /> 
  <meta http-equiv="x-ua-compatible" content="ie=edge" /> ....

```
