Due to WordPress’s blog origin, many WordPress website themes look like a simple blog. Many users want to add a welcome page to their website, transform a WordPress blog into a CMS website, or recommend the most important content to website visitors. Today I will introduce to you how to add a static welcome page to a WordPress website.
Method 1: Use the static page function of WordPress
In the WordPress background, add two new pages through [Page]-[New Page] and name them respectively "Homepage" and "Blog".
Then in the background [Settings] - [Reading Settings], modify the [Home Page Display] option and set the home page and article page to the newly created "Home Page" and "Blog" pages respectively.
In this way, you can freely set the content of the welcome page in the "Home Page", add pictures, modify text, etc.
Method 2: Add html static boot page to WordPress
Method 1 above is simple and practical. Many WordPress theme designers use this method to design many beautiful CMS-style WordPress themes. The problem is, if the WordPress theme I use has already made a beautiful homepage using the above method, but I need to add another website guide page, what should I do?
For other commonly used website programs, such as dedecms, etc., we only need to add an index.html guide page file in the program root directory and set the priority to be higher than the index.php file. But this trick doesn’t work for WordPress. Because WordPress will always call the file with the highest priority in the root directory of the website, if index.html exists and its priority is higher than index.php, an infinite loop will form and the content of the WordPress website cannot be displayed.
In this case, we have two options: first, transfer the WordPress website as a whole to a subdirectory, and then add the index.html file in the root directory as the boot page; however, this will affect The website structure is not conducive to SEO, so we will not introduce it here for now. Second, modify the WordPress program; this method is a little more troublesome and requires that the server you use supports pseudo-static (mod_rewrite module). It is divided into the following four steps:
1. In the WordPress management background, find [Settings] -[Fixed link (or permanent link)], modify the default link structure. Just confirm here that it is not the default link structure.
#2. WordPress will automatically generate the .htaccess file in the program root directory. If the server you are using does not automatically generate an .htaccess file, you can manually create a blank text file and name it .htaccess. If the hosting space you are using does not support it at all, it is recommended that you change to a more professional WordPress hosting.
It should be noted that the above and following codes
##123456789 | # BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f ##RewriteCond %{REQUEST_FILENAME} !- d
## # END WordPress
| , please be sure to use lowercase letters, because these codes are case-sensitive and will not take effect if they are inconsistent. After the above code, manually add the following three lines of code to ensure that the index.html file has a higher priority than the index.php file:
23 | #DirectoryIndex index.html index .php ##
|
var | $index =
'index.php' ;
| Change it to:
1
$index | =
'home.php' ;
This step is to rename the homepage of the WordPress system to home.php. 4. Finally, copy the index.php file on the homepage in the WordPress directory and change the name to home.php. Note that this is a copy, do not modify the file name directly. In this way, the problem is solved. You can create your own onboarding page, name it index.html, and then link the link to the website in the onboarding page to the home.php file. Both the lead page and WordPress work fine. The internal links in WordPress remain unchanged, but the homepage becomes the home.php file. Method 3: Use WordPress Boot Plug-in Although the second method is good, it cannot be used in the new version, which is very regrettable. Continuing to use older versions of WordPress may bring security threats to your website, which we cannot accept. Finally, we turn to the WordPress community, which is the source of the power of WordPress. Many avid WordPress enthusiasts have developed many plugins to extend the functionality of WordPress. Here we have found a suitable WordPress welcome page plugin, WP Splash Page plugin. In addition, there is a plug-in with a similar interface and a different name called Preloading, which can be used as a backup. In the WordPress management background, download the WP Splash Page plug-in. After installing and activating the plug-in, we can set some related options in [Settings]->[WP Splash Page]: In this plug-in, you can set the page title, title, content, text on the continue access button, as well as the color used, background image and Beijing color of the guide page. You can also use videos as guide page content, where you can set the width and height of the video, and whether to automatically play, etc. In addition, this plug-in also includes some additional options, such as verifying the age of the visitor (according to relevant laws, some content needs to be accessed by those over 18 years old), such as requiring visitors to agree to the website use agreement, etc. . These can all be set. The WP Splash Page plug-in is simple and convenient to use. It does not require any programming knowledge or modification of text. It's a bit of a pity that the default template and color scheme are too basic. But as long as you put some thought into it, change the default color scheme, or modify the CSS code of the template, you can use it to make a more beautiful boot page. The guidance page is only suitable for some special occasions. If used improperly, it will bring an unfriendly access experience to the user. It is recommended that the user treat it with caution when using it. For more wordpress related technical articles, please visit the wordpress tutorial column to learn! |
The above is the detailed content of How to create website guide page in WordPress. For more information, please follow other related articles on the PHP Chinese website!

Do you want to connect your website to Yandex Webmaster Tools? Webmaster tools such as Google Search Console, Bing and Yandex can help you optimize your website, monitor traffic, manage robots.txt, check for website errors, and more. In this article, we will share how to add your WordPress website to the Yandex Webmaster Tool to monitor your search engine traffic. What is Yandex? Yandex is a popular search engine based in Russia, similar to Google and Bing. You can excel in Yandex

Do you need to fix HTTP image upload errors in WordPress? This error can be particularly frustrating when you create content in WordPress. This usually happens when you upload images or other files to your CMS using the built-in WordPress media library. In this article, we will show you how to easily fix HTTP image upload errors in WordPress. What is the reason for HTTP errors during WordPress media uploading? When you try to upload files to Wo using WordPress media uploader

Recently, one of our readers reported that the Add Media button on their WordPress site suddenly stopped working. This classic editor problem does not show any errors or warnings, which makes the user unaware why their "Add Media" button does not work. In this article, we will show you how to easily fix the Add Media button in WordPress that doesn't work. What causes WordPress "Add Media" button to stop working? If you are still using the old classic WordPress editor, the Add Media button allows you to insert images, videos, and more into your blog post.

Do you want to know how to use cookies on your WordPress website? Cookies are useful tools for storing temporary information in users’ browsers. You can use this information to enhance the user experience through personalization and behavioral targeting. In this ultimate guide, we will show you how to set, get, and delete WordPresscookies like a professional. Note: This is an advanced tutorial. It requires you to be proficient in HTML, CSS, WordPress websites and PHP. What are cookies? Cookies are created and stored when users visit websites.

Do you see the "429 too many requests" error on your WordPress website? This error message means that the user is sending too many HTTP requests to the server of your website. This error can be very frustrating because it is difficult to find out what causes the error. In this article, we will show you how to easily fix the "WordPress429TooManyRequests" error. What causes too many requests for WordPress429? The most common cause of the "429TooManyRequests" error is that the user, bot, or script attempts to go to the website

WordPresscanhandlelargewebsiteswithcarefulplanningandoptimization.1)Usecachingtoreduceserverload.2)Optimizeyourdatabaseregularly.3)ImplementaCDNtodistributecontent.4)Vetpluginsandthemestoavoidconflicts.5)ConsidermanagedWordPresshostingforenhancedperf

WordPress is very customized, providing a wide range of flexibility and customizability. 1) Through the theme and plug-in ecosystem, 2) use RESTAPI for front-end development, 3) In-depth code level modifications, users can achieve a highly personalized experience. However, customization requires mastering technologies such as PHP, JavaScript, CSS, etc., and pay attention to performance optimization and plug-in selection to avoid potential problems.

WordPressisanexcellentchoiceforaCMSduetoitsuser-friendlyinterface,extensiveecosystem,SEOcapabilities,scalability,andsupportivecommunity.1)Itsintuitivedashboardmakescontentmanagementeasyforallusers.2)Thevastarrayofthemesandpluginsallowsforextensivecus


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Linux new version
SublimeText3 Linux latest version
