PHP Warriors, Please help
I am trying to write a function in the genesis framwork that would allow me to add before_content_sidebar_wrap only on page_blog.php for my slider but can't seem to get it to work! I notice that the wrap and hook are added successefully but they display in every page instead of the blog only. Any help would be greatly appreciated. Here is my function
add_action('genesis_before_content_sidebar_wrap', 'child_before_content_sidebar_wrap'); if ( ! ( is_page_template( ‚page_blog.php‚ ) ) ) return;
and here is my website I am displaying the slider on. It should be only on the blog page; mainlinerealtors.com/blog/
Thanks a lot,
Edited by kwmlr439, 09 May 2014 - 11:43 AM.