Forum Replies Created
-
AuthorPosts
-
Digital PureMember
Thank you very much that is working brilliant....
Now to try and get the right widget to center when it wraps... Tried using margin: 0 auto; and it is not working... for now I padded the left side so it stands off the left side, and floated it to the right.
Digital PureMemberWould be a really cool feature add to put in the theme options a checkbox that stated: "show tagline or show page title"
Digital PureMemberI have not tested this (sorry dev enviro broke this afternoon).
//* Add the site tagline section add_action( 'genesis_after_header', 'minimum_site_tagline' ); if( '!is_home') { function minimum_site_tagline() { printf( '<div %s>', genesis_attr( 'site-tagline' ) ); genesis_structural_wrap( 'site-tagline' ); printf( '<div %s>', genesis_attr( 'site-tagline-left' ) ); printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( get_bloginfo( 'description' ) ) ); echo '</div>'; printf( '<div %s>', genesis_attr( 'site-tagline-right' ) ); genesis_widget_area( 'site-tagline-right' ); echo '</div>'; genesis_structural_wrap( 'site-tagline', 'close' ); echo '</div>'; } else { function minimum_site_tagline() { printf( '<div %s>', genesis_attr( 'site-tagline' ) ); genesis_structural_wrap( 'site-tagline' ); printf( '<div %s>', genesis_attr( 'site-tagline-left' ) ); printf( '<h1 %s>%s</h1>', genesis_attr( 'entry-title' ), esc_html( get_the_title() ) ); echo '</div>'; printf( '<div %s>', genesis_attr( 'site-tagline-right' ) ); genesis_widget_area( 'site-tagline-right' ); echo '</div>'; genesis_structural_wrap( 'site-tagline', 'close' ); echo '</div>'; } //* Remove page titles remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); } }
Digital PureMemberI am sure that you need to unregister the "site-tagline" and the "genesis_entry_header" from their normal postions, and then register the genesis_entry_header in the custom site-tagline area. I have been playing around with doing this also, and the css gets all weird on me. I would love to see this working though.
-
AuthorPosts