我想要构建一个wordpress主题,其中有一个由图像和徽标组成的登陆页面;当点击徽标时,主题必须转到另一个页面,其中有导航栏和其他东西。
因此,顺序如下:
我最初的想法是使用front-page.php和home.php,对吗?
谢谢!
发布于 2014-04-15 09:24:48
经过一些研究,我得出结论,这个飞溅的屏幕会破坏网站的SEO和可用性,所以我决定不添加这类页面。
发布于 2014-04-01 10:27:50
1)在页面上创建一个模板页面--使用以下代码在landingpage.php中创建模板dir
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用于登陆页面。


https://wordpress.stackexchange.com/questions/139855
复制相似问题