Jump to content
Sign in to follow this  
danoah

How do I use different hooks for different carousels?

Recommended Posts

danoah

How do I add different hooks for carousels on different pages? It seems that the hooks provided affect all carousels. For example: I have a hook on this carousel: http://buildblog.danoah.com/ And it shows up here (broken), and I'd like to remove it or change it: http://buildblog.danoah.com/blog/photography/ Thanks! Dan

Share this post


Link to post
Share on other sites
Rob

Dan, what's broken? Both appeared exactly the same to me.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
danoah

The hook image is broken because the paths are different.

Share this post


Link to post
Share on other sites
Rob

Dan, forgive me, but could you elaborate. As I said, I see no difference at all between the two. Maybe I'm missing something OR maybe something is showing differently in your browser (cached) that others don't see.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
danoah

The broken image wasn't anything to do with anything and is something I can fix. I am trying to figure out how to put different hooks into different carousels. Thanks, Dan

Share this post


Link to post
Share on other sites
kastelic

Something like this?

	add_action('pagelines_before_carousel','my_hook')
	function my_hook(){
	   if (is_page(123)){
	       //code here
	   }
	}
	

Share this post


Link to post
Share on other sites
danoah

Thanks! I'm not a coder. What do I install in the place of 123? Is that the URL?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×