Forum Replies Created
-
AuthorPosts
-
September 3, 2013 at 9:36 am in reply to: Only Display Title-Page Area (Slider) on Home Page or Front Page #60438phill.jasmithMember
Awesome Sridhar, it worked!
Thanks man!
Sridhar, as a point of interest, why did this work and not when I did them individually?
I used
if(is_home())
and I usedif(is_front_page())
individually with not luck.Here are my if statements that did not work.
if(is_home()){ /** Add the page title section*/ add_action( 'genesis_before_content_sidebar_wrap', 'eleven40_page_title' ); function eleven40_page_title() { genesis_widget_area( 'page-title', array( 'before' => '<div class="page-title widget-area">', ) ); } }
and here's the other one:
if(is_front_page()){ /** Add the page title section*/ add_action( 'genesis_before_content_sidebar_wrap', 'eleven40_page_title' ); function eleven40_page_title() { genesis_widget_area( 'page-title', array( 'before' => '<div class="page-title widget-area">', ) ); } }
Both of these did not work individually, does it matter that you put the if statement inside the function itself?
Thank for the help Sridhar,
Cheers!
PhillSeptember 3, 2013 at 12:10 am in reply to: Only Display Title-Page Area (Slider) on Home Page or Front Page #60362phill.jasmithMemberHi Sridhar,
Thank you, no I don't add this sidebar, I think you may have download the newer eleven40Pro theme, I think that one doesn't have the "page title" widget area. I'm using the original eleven40 theme which I believe is still available for download. I did customize the theme through css but I did not add any sidebar widget areas myself.
The slider I'm using is the genesis-responsive-slider.
Thanks Sridhar, any help is much appreciated!
Phill
-
AuthorPosts