How to create splash page in WordPress - 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!

Related

Editing page in wordpress - page not in content manager

I need to edit a page on my wordpress site, but the page doesn't show on the "Pages" feature. This page is accessible over a top menu that I can edit over the themes/template editing. However I cannot find a way to edit it or even find it on my file manager.
This is the page URL: http://protector-canum.de/linkliste/
I just need to add some content to it.
Anyone aware of how I can get this done?
Thanks!
Check the css class of your body tag and look for post-id-XXXX
use that number in your admin url

All sub links have /home/ in the url for wordpress install

Basically any of my pages outside of the home page all have home in the url. Something like domain.com/home/about instead of just domain.com/about.
If I go to edit the page, I can change the about part, but the domain.com/home/ is not editable. Where could I change this?
Please check the value of Site Address(URL) from administration panel:-
Settings -> General
and remove "home/" if it is there. Update me if you still have the same issue.

WordPress Inside Pages Default to Index Always?

I set up a site with WordPress using the automatic setup through a hosting provider. I am in WordPress, and it's working well in that I can create pages. However, when I go to view the page, it always defaults to the index page. So for example:
If I go to www.site.com/about
It goes to www.site.com
It does not show the inside pages. I cannot figure out why it is doing this. Any thoughts? I have set up new WordPress sites before and have not run into this problem. Did I miss a step in the set up process?
Any help would be greatly appreciated, thank you.
Without putting my hands on your site it is difficult. Is is possible for you to share a link to your site?
What theme are you using? Are you are using a custom theme? If so check if you have a file in your theme folder that is called page.php and that is not the same as your index file.
Try clicking on the page preview button from inside the page editor. Check the url to be sure it is the one you are expecting.
Have you adjusted the permalinks in your WordPress configuration? Double check that it is valid. Should be something like */%post_id%/%postname%/*
I hope some of that helped. try to give a little more info about you settings.

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

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.

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