danoah 1 Report post Posted August 16, 2011 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 547 Report post Posted August 16, 2011 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 1 Report post Posted August 16, 2011 The hook image is broken because the paths are different. Share this post Link to post Share on other sites
Rob 547 Report post Posted August 16, 2011 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 1 Report post Posted August 16, 2011 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 6 Report post Posted August 16, 2011 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 1 Report post Posted August 16, 2011 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
catrina 103 Report post Posted August 17, 2011 123 must be replaced by the page ID number. Please read the docs before posting. Please do not private message me unless I ask you to. Designer | Catrina Dulay Founder | Catrina and Mouse Share this post Link to post Share on other sites
danoah 1 Report post Posted August 17, 2011 Okay, thanks! Share this post Link to post Share on other sites
kastelic 6 Report post Posted August 17, 2011 You can use the name of the page too. http://codex.wordpress.org/Function_Reference/is_page Share this post Link to post Share on other sites