Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRon Gootman
24,409 PointsSetting a Custom Welcome Page as the index page (home page) which has "Go To Website" link to the main (wordpress) site
I have created a custom welcome webpage (landing page?) via html & css. It has a "Go To Website" button.
How can I set this custom welcome page to serve as the index page (home page), prior to my wordpress site.
If you check http://okdork.com/ you'll understand what I am trying to achieve.
Appreciate any suggestion from you guys.
Ron Gootman
24,409 PointsThanks Christopher...
Correct, I want visitors to land on my welcome page and then be redirected to the wordpress site itself.
I suppose that all of these name changes can be applied via FileZilla?
- Set the welcome page as index.html
- Set my current wordpress home page to main.html
2 Answers
Mahesh Sangam
71 PointsShir Kay for that you can create a front-page.php this is default main page.. this will load first and when they click any menu they can see inside pages if you don't need this front-page.php you can see directly - when you can see index.php will be the main page..
Hope this will work thanks
Zac Gordon
Treehouse Guest TeacherFirst I would questions if a landing page is actually necessary or a good idea.
If you have an index.html file it will display instead of the index.php if someone visit your url. This approach would not redirect someone to the landing page if they went directly to a page on the site.
You will also have to test if someone can access the wp homepage if you have an index.html page.
Again, I would think about why you're doing this and if it's really necessary.
Ron Gootman
24,409 PointsThank you Zac for your response.
I managed to achieve this by pasting a php code I gathered from http://codex.wordpress.org/Page_Templates prior to the html code and saving it as a .php file.
Christopher Bolivar
10,879 PointsChristopher Bolivar
10,879 PointsDo you want users to land on your welcome page every time they visit your website? If so just need rename your welcome page file to "index.html" and your current landing page to main.html (or what every you want to name it.)