Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>there are few ways to a "landing page" in your site. here's 2 methods:</p> <p>1 - you can create a page in the cms and then make a template for it.</p> <p>For example, we wanna make a page named "landing". We duplicate the page.php file in our theme and change his name to landing.php (as described here: <a href="http://codex.wordpress.org/images/1/18/Template_Hierarchy.png" rel="nofollow">http://codex.wordpress.org/images/1/18/Template_Hierarchy.png</a>).</p> <p>Then, in the page's code, in the top, we'll write the template name in the right syntax:</p> <pre><code>&lt; ?php /* Template Name: landing */ ?&gt; //other html/php code here </code></pre> <p>You can include the header, footer, sidebar, or choose not to include them. the page url will be <code>www.mysite.com/landing</code>.</p> <p>2 - The second way is to create a file outside your theme folder, in your server's root directory or in some designated folder (using a ftp connection, ofcourse). in the example you brought, <code>http://lukepeerfly.com/demos/iframe/html.txt</code>, html.txt is probably located in <strong>root\demos\iframe</strong> directory on the server.</p> <p>your new file will be outside the wordpress. if you do want the file to be a part of your wordpress system (you need it if you want to use wordpress functions, hooks, database and etc) you'll need to include the "wp-load.php" file in the start of your code.</p> <p>For example, our page, "landing.php", is directory "pages" in my root directory. in the page's code we'll write the following lines:</p> <pre><code>&lt;?php require('./../wp-load.php'); ?&gt; //other html/php code here </code></pre> <p>In here as well, you can include the header, footer, sidebar, or choose not to include them. the page url will be <code>www.mysite.com/pages/landing.php</code>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload