How to add code to new homepage

2 replies
  • WEB DESIGN
  • |
Hi I added a new static homepage instead of my post homepage but need to install code for a slider. I originally added the new homepage through navigation menu.

Where in the editior would I need to go to add the code for my new static homepage?


Thanks

Danny
#add #code #homepage
  • Profile picture of the author topnichewebsites
    If you added a page to be your static homepage then edit the page your made "HOME" (if thats the page you created) in WP Admin

    There you can format the page as you want it. Set that page as your front page in the reading section aka static page.
    Signature
    http://pixelcovers.com/ <- eBook add eCovers

    https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
    {{ DiscussionBoard.errors[7272566].message }}
  • Profile picture of the author copilu0
    Copy the index.php or the page.php code into a new template and choose to use that template when you edit the Home page.
    You can find more HERE (at the bottom)

    Basically you need to add the following code at the beginning of the page.php or index.php (pay attention because those two are different so choose which code you'll use) and then save the template with the new name and upload it to the server:

    Code:
    <?php
    /*
    Template Name: Homepage
    */
    ?>
    Now you can make any change that you want into the new template code.
    {{ DiscussionBoard.errors[7273924].message }}

Trending Topics