简体   繁体   中英

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. 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

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

keyboard_nav            :   1,      //Keyboard navigation on/off

Change this 1 to a 0 and it should be disabled. 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:

wp-content/themes/THEME_NAME/header.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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