Solved

wordpress parallax effect plugin

Posted on 2014-04-29
2
561 Views
Last Modified: 2014-04-30
Hi Experts,

I was wondering, do you know if it is possible to add a parallax effect to subpages? I am looking for a plugin that does that but I can´t find it. I know parallax is usually placed on landing pages, but this client wants one on one of his website subpages. I would really appreciate any advice,

Thanks,

Winter
0
Comment
Question by:glepiza
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
eemit earned 350 total points
ID: 40031601
You can enqueue a jQuery script to any particular page inclusive a subpage.
Try this in your child theme's functions.php.
Assumes your paralax .js file is in a child theme's subfolder 'js':
add_action( 'wp_enqueue_scripts', 'yourprefix_scripts_styles', 11 );
function yourprefix_scripts_styles() {
	if ( is_page( 'yoursubpageslug' )  ) {
		wp_enqueue_script( 'yourprefix-yourscript-js', get_stylesheet_directory_uri() . '/js/yourscript.js', array( 'jquery' ), '20140430', true );
	}
}

Open in new window

0
 

Author Comment

by:glepiza
ID: 40033479
ah!, thank you very much!
0

Featured Post

Report: Liquid Web beats Amazon, Rackspace & More

A study by performance analyst firm Cloud Spectator finds that Liquid Web beats rivals Amazon, Rackspace and DigitalOcean when it comes to website and cloud application performance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question