• Resolved sadye

    (@sadye)


    Morning or Evening To All, what I am trying to do is set-up a different theme for a sub-page. I have scanned ‘codex’ and I have found out in order to do this I need to create a file.

    OK, that’s my current ‘boggle’…how do I create a FILE.

    Any and all suggestions, comments, ‘how to’s’ will be greatly appreciated.

    Ciao…

Viewing 4 replies - 1 through 4 (of 4 total)
  • You mean a PHP file? In Notepad for example and save as .php file.

    Thread Starter sadye

    (@sadye)

    Hi Gangleri

    The following is the Codex example…

    [Creating Your Own Page Templates

    The files defining each Page Template are found in your Themes directory. To create a new Custom Page Template for a Page you must create a file. Let’s call our first Page Template for our Page snarfer.php. At the top of the snarfer.php file, put the following:

    <?php
    /*
    Template Name: Snarfer
    */
    ?>

    The above code defines this snarfer.php file as the “Snarfer” Template. Naturally, “Snarfer” may be replaced with most any text to change the name of the Page Template. This Template Name will appear in the Theme Editor as the link to edit this file.]

    So, my question is…how do I create a file and then have it appear in the Theme Editor?

    Or if I use notepad and save, do I then FTP that file???

    Thanks

    I actually have that same question … sadly, I see this post is 9 months old with no final reply …

    Can anyone answer?

    Thanks!

    How do you create a file?

    Is that your question?…

    Create a document, any document, on windows for example, right click somewhere on the desktop (not on an icon), click New, then Text Document. You now have a blank text document, right click and choose rename, call it what you want…

    If you wanted a php file, then perhaps myfile.php, or hello.php or mynameismud.php or whatever you want…

    Once you have a file you want to upload you’d use an FTP program to upload it as you would with any other website file…

    https://www.google.co.uk/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-GB%3Aofficial&hs=le7&q=how+to+use+ftp&btnG=Search&meta=

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How Do I Create A File…8o(’ is closed to new replies.