Created
May 15, 2018 03:15
-
-
Save seothemes/7949fd7aa352d3e6adffbc4367c76978 to your computer and use it in GitHub Desktop.
Adds ontouchstart attribute to body in Genesis.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Do not include opening PHP tag. | |
| add_filter( 'genesis_attr_body', 'custom_add_ontouchstart_to_body' ); | |
| /** | |
| * Add ontouchstart attribute to body. | |
| * | |
| * @param array $atts Body attributes. | |
| * @return array | |
| */ | |
| function custom_add_ontouchstart_to_body( $atts ) { | |
| $atts['ontouchstart'] = ' '; | |
| return $atts; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment