189 8069 5689

wordpress滑块值 wpf popup跟着滑块走

wordpress自定义栏目 怎么设置 默认值?

下载测试了该主题,不得不承认这是一款好的主题,作者的代码习惯值得学习。

创新互联长期为上千余家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为贵南企业提供专业的成都做网站、成都网站建设,贵南网站改版等技术服务。拥有10多年丰富建站经验和众多成功案例,为您定制开发。

针对你的问题,我提供以下几个步骤:

1、启用该主题后,在后台发布slides,如图:

其中,你说的几个自定义项,如下图:

1 att_slides_video: 表示可以在幻灯片中插入一个视频,这里指定视频地址即可。具体我没测试

2 att_slides_url: 表示点击图片后的目标地址,不是必须要输

3 att_slides_url_target:表示目标地址打开的方式,默认为本窗口打开,不是必须要选

另外需注意,发布slides时,需要添加”特色图像“

2、修改代码:

以上工作做完后,还需要修改模板中index.php文件。可参考如下图:

在红色框中添加如下代码:

?php 

if ( is_home() || is_front_page() )

get_template_part( 'content', 'slides');

?

经过这几步,再打开首页,你就会发现,首页已经有幻灯片呈现了!

至于第2个问题,二屏的内容在首页显示,我估摸着你是想那样的排列方式

主题网站的首页显示的portfolio类型的文章,所以你想要显示,可进一步参考content-portfolio.php文件里的源码。同时在首页加如下代码:

?php 

if ( is_home() || is_front_page() )

get_template_part( 'content', 'portfolio');

?

最后记得在后台发布portfolio类型的文章才行。

---------------------

更新:

我把index.php改了一下,索性直接发给你

?php

/**

* The main template file.

*

* This is the most generic template file in a WordPress theme and one of the

* two required files for a theme (the other being style.css).

* It is used to display a page when nothing more specific matches a query.

* For example, it puts together the home page when no home.php file exists.

*

* Learn more: 

*

* @package WordPress

* @subpackage Authentic Themes

* @since 1.0

*/

get_header(); ?

div id="primary" class="content-area container clr"

div id="content" class="site-content" role="main"

?php 

if ( is_home() || is_front_page() )

get_template_part( 'content', 'slides');

?        

div id="home-portfolio"                                                       

div id="portfolio-wrap"

div id="portfolio-filter-content" class="portfolio-isotope clr" 

?php while ( have_posts() ) : the_post(); ?

?php get_template_part( 'content', 'portfolio' ); ?

?php endwhile; ?

?php att_pagejump(); ?

/div

/div

/div

/div!-- #content --

/div!-- #primary --

?php get_footer(); ?

搞了好久,终于回答完了,还请采纳哈~

wordpress革命滑块怎么设置成到当前页才加载动画?

直接打开首页模板

在你想展示的位置,加代码就好

当然,前提是,你自己要明白你想放的位置在哪。。。

如果连你自己都不知道

别人怎么知道?

wordpress革命滑块轮播的箭头怎么设置

如上图。在滑块设置里面的导航出设置,可以设置不同样式的左右键。

wordpress 建的网站侧边滑块无效,求大侠

建议把所有插件全部停掉后再试下,如果还是无效就说明是程序的问题,而不是插件冲突。。如果可以那就一个插件一个插件的启用。。看是哪个插件的原因


文章题目:wordpress滑块值 wpf popup跟着滑块走
当前路径:http://cdxtjz.cn/article/ddohdhs.html

其他资讯