简体   繁体   English

箭头键改变全屏背景图像

[英]Arrow keys change full-screen background image

I'm implementing a Wordpress theme for a client, and just discovered that when you press one of the arrow keys (repeatedly) to scroll the page content (rather than using the mouse), it causes the theme's full-screen background images to rotate as well. 我正在为客户端实现一个Wordpress主题 ,并且发现当你按下其中一个箭头键(重复)滚动页面内容(而不是使用鼠标)时,它会导致主题的全屏背景图像旋转同样。 The same thing happens when you press any of the other directional keys repeatedly. 重复按任何其他方向键时会发生同样的事情。 Is there any way to disable this functionality/feature? 有没有办法禁用此功能/功能?

Here's the theme: http://www.gallyapp.com/tf_themes/?theme=Pluto 这是主题: http//www.gallyapp.com/tf_themes/? theme = Pluto

If you have a look at the source code for the page there is a script being used for those changes called supersized. 如果您查看页面的源代码,则会有一个脚本用于称为超级化的更改。

On line 216 there is a variable being set 在第216行,有一个变量被设置

keyboard_nav            :   1,      //Keyboard navigation on/off

Change this 1 to a 0 and it should be disabled. 将此1更改为0,应将其禁用。 eg: 例如:

keyboard_nav            :   0,      //Keyboard navigation on/off

I'm personally not familiar with the theme but this javascript will be in one of the headers of theme normally found in: 我个人不熟悉这个主题,但是这个javascript将出现在以下主题中的一个标题中:

wp-content/themes/THEME_NAME/header.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM