Skip to content

Adding custom page to your project

Obihörnchen edited this page Nov 13, 2016 · 1 revision

Requirements

  • FTP/sFTP client

Create your page

  • First add a page in pages folder The page must be named following this convention :

page_name.page.php

As Worldpage is based on Bootstrap, you must start your page by a row.

`

	<h1>Content</h1>
	<p>Here comes your content</p>
	
</div>
`

At this moment, you can access to your page using the page GET param.

http://HOST.TLD/?page=page_name

Create a SEO friendly URL

Edit .htaccess file to add your URL

RewriteRule ^FRIENDLY_URL$ index.php?page=page_name [QSA,NC,L]

Add your page to your menu

See Editing menu