Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 1st Nov 2012, 04:54 AM   #1
HyperActive Warrior
 
Join Date: 2012
Posts: 119
Thanks: 10
Thanked 2 Times in 2 Posts
Default
How to add code to new homepage
Share on: 
fb share twitter share gplus share more share

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
dannyboy30 is offline  
Unread 1st Nov 2012, 06:43 AM   #2
Niche Websites Buildiers
War Room Member
 
topnichewebsites's Avatar
 
Join Date: 2012
Location: Annapolis, Maryland - USA
Posts: 857
Thanks: 62
Thanked 171 Times in 169 Posts
Default
Re: How to add code to new homepage
Share on: 
fb share twitter share gplus share more share

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.

http://pixelcovers.com/ <- eBook add eCovers

https://www.unicommercesolutions.com <- WordPress Websites and Maintenance
topnichewebsites is offline  
Unread 1st Nov 2012, 11:09 AM   #3
HyperActive Warrior
 
Join Date: 2011
Posts: 307
Thanks: 9
Thanked 38 Times in 37 Posts
Default
Re: How to add code to new homepage
Share on: 
fb share twitter share gplus share more share

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.

copilu0 is offline  
Closed Thread


Bookmarks

Tags
add, code, homepage


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:06 AM.