How do I create a static page and redirect to a WordPress blog without moving files? - wordpress

I have WordPress installed in the main directory. I want to create a static page so that when the person clicks "click here". It goes to the wordpress blog.
I have tried this two ways thus far.
Created a custom page in wordpress and then had it set as a static page. Problem when someone clicked the linked it redirected back to the splash page.
Put the files in the main directory. Problem the person would have to go to www.example.com/splash.html to get there. I tried creating a htaccess but host gator will not let me.
edit: I figured it out using
<?php
if( (strpos($_SERVER['HTTP_REFERER'], get_bloginfo('home')) === false) && !$_SERVER['QUERY_STRING']) :
?>

What is the purpose of the splash page if its just one link on it?
One option is to create your page within wordpress and set the frontpage to show as a static page (under settings > reading). On that page link to your /blog/ category or to a custom template page that displays all your blog posts.
If you want to have the same design as the page currently has, you can make a new template out of you current index.php file.
http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
The simple option is to use a plugin.
http://cochinoman.com/2009/02/16/wordpress-plugin-for-splash-screen/
Gives you the option to Continue on or go back.

Related

create "Enter website" page

i have a wordpress website,
I have created html page with background and logo and "Enter website" Button
I want visitors to see this page first, and when click on "Enter website" button, they get redirected to the wordpress home ( which is in the same directory ) page.
Kindly note that this trick is different than the "wordpress static page"
I want to keep the wordpress index the same ( show the latest posts )
And want to show the intro page only once!
My idea was to upload the intro page with "index.html" name
And when you click enter, the link will be "index.php" so you see the wordpress default index.
but it failed, i don't know why, but when i go to index.php, i see the index.html content!!! not the wordpress one!
currently i am thinking about doing this trick through the template index file and the php sessions which is difficult.
Any one know a plugin or a simple way to do the trick?
Thankyou
You can set landing page as index.html in root of your cpanel and then if any one click on button called Enter Website and then it will redirect to page called home that you have to create in wordpress admin (i.e. http://www.example.com/home).
check this plugin
WORDPRESS SPLASH PLUGIN

Wordpress template without blog pages

I chose Wordpress for my last project but I have a question. I'll use Pages so the client is able to change the content himself. For the moment there are no Post or blog in it. Is it possible to run Wordpess without a blog? It'll be a blog in a future but not now. Thanks.
Absolutely you can have a WordPress site without a blog. You just need to do a couple of things in the admin.
First you need to create 2 pages: a static 'home' page, and a 'blog index' page. The home page is what will be displayed when a visitor comes to the site. The blog index page is just a blank page, with a title you can remember.
Next, in Settings > Reading, select Front page displays a 'static page', then set 'Front page:' to the home page you made, and 'Posts page:' to the blog index page you made.
Yes, for sure you can do this.
Just do the following:
In your admin backend click on Settings -> Reading and set "A Static Page"
Go to Appearance and build a custom menu and add there your pages to a active menu.
Disable all widgets which link to posts.
In fact you need only the first step, but with the second you allow users to navigate on your site. To make the UX better, just add a plugin like Map Categories to Pages to add a category widget or something in this way, to let people browse your site more nicely.

Main Page Login also logs user into Wordpress section

We have a site with a members-only section and WordPress in a subdirectory. Some of the members-only pages, forms, etc. are outside of WP. We created a Member Login form on our homepage using Dreamweaver 5.5. Is there a way to have WordPress accept that main login so that a member doesn't need to login again when going to a WP member-only page? Thanks for any help you can be in pointing me in the right direction. I know just enough PHP to be dangerous. Let me know if you would like to see the DW login code.
Yes, you are talking about creating your own custom template for a Wordpress page.
You can use the page you generated from Dreamweaver by renaming its extension to .php, unless it already is. Move it to the /wp-content/themes/yourtheme folder, where yourtheme is your currently active theme. On the top of the template, add these lines:
<?php
//
// Template Name: Login Form
//
?>
Go to Wordpress Dashboard > Pages > Add New. Add a page called 'Login' or whatever you need, select 'Login Form' as the Template under Page attributes, and you Publish.
Reference: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

How to create splash page in WordPress

I'm looking to display splash page at the beginning of a site. How can I do this in WordPress?
I have created the static home page by going to admin->setting->reading .. But I need to display one page before that, it will ask the user to click the enter button for entering into the site.
Please someone help me!
What exactly do you need a splash-screen for? Setting a static page to load first under Settings->Reading is the best way to accomplish this. Why not set the static page to your splash screen, and then link to your static home page from said page?
Also, you could create a page-template for that specific page, and then select that template in the page settings menu.
I was looking for a solution for this..
Here is mine:
On the root of your wordpress installation, in the index.php, before the comment
Loads the WordPress Environment and Template, add something like this
if( (strpos($_SERVER['HTTP_REFERER'], 'yourdomain.com') === false) && !$_SERVER['QUERY_STRING']){
include 'splash.html';
exit();
}
Then edit/create your splash.html.
Please note that any wordpress update might overwrite the index.php on the root.
Hope it helps anyone!

Wordpress blog page

Quick question (quick deadline...I know I can use google).
I'm writing a site on Wordpress w/ a static home page, it has a few pages--I want the 'blog' page to show the wp entries...what's the best way to set this up.
Right now I have a static template for each page (with content rendered), but of course, the blog page doesn't show the posts...
Thanks for the help!
Create a Wordpress Page Template by making a page with any name and this comment at the top:
/*
Template Name: Blog Enitres
*/
Go create a page, use that as the template (there is a selector on the right hand side). Call it whatever and save it. This is your static page.
Then, after that, go down to Settings > Reading and change the 'Home' page to be the page you've created.
Then create an index.php and save it. This will be the template for the displayed posts. Create an empty page and select it at the 'Posts Page' in settings.
To learn more about this functionality go here.
To learn more about the Wordpress loop and how to display entries, visit codex.wordpress.org

Resources