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
Solved

wordpress parallax effect plugin

Posted on 2014-04-29
2
553 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
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
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…

839 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