Solved

wordpress parallax effect plugin

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

This article shows how a content item can be identified directly or through translation of a navigation type. It then shows how this information can be used to create a menu for further navigation.
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 insert an Iframe into 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 : Open Page or Post…
This video teaches users how to migrate an existing Wordpress website to a new domain.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now