我想建立一个wordpress主题,其中有一个由图像和徽标组成的登录页;单击徽标时,主题必须转到另一个页面,其中有导航栏和其他内容。
因此,顺序如下:
登录页(图像和徽标)front-page.php 以及home.php
; 是这样吗
谢谢!
我想建立一个wordpress主题,其中有一个由图像和徽标组成的登录页;单击徽标时,主题必须转到另一个页面,其中有导航栏和其他内容。
因此,顺序如下:
登录页(图像和徽标)front-page.php 以及home.php
; 是这样吗
谢谢!
经过一些研究,我得出结论,这个闪屏会破坏网站的SEO和可用性,所以我决定不添加这种页面。
1) 在landingpage中的页面模板目录上创建一个模板页面。使用此代码的php
page-templates/landingpage.php
<?php
/**
* Template Name: Landing page
*/
?>
<div id="main-content" class="main-content">
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
the_content();
endwhile;
?>
</div><!-- #content -->
</div><!-- #primary -->
</div><!-- #main-content -->
2)使用图像添加页面内容,并应用单击时显示的链接3) 在运行时查看您的登录页,并为登录页制作css。
我正在开发一个主题,它有不同的添加内容的方法,因此,Wordpress的默认安装不会显示任何内容。我想知道在主题被激活后,是否可以通过内部函数和/或挂钩自动导入XML文件?User installs theme > User activates theme > Code behind the scenes loads up an XML file and performs a silent import of its contents当前要导入XML文件,您必须为Wordpress