Forum Replies Created
-
AuthorPosts
-
hmistlerMember
Thanks for the reply - I tried Carrie Dill's php code to move the header outside the wrap; it actually made my Top Bar segment move further down the page! Using the hook guide, I can see that genesis_before IS outside of the wrap (which in this theme is called "site-container"). I think I need to switch something in the PHP code to make it move the top bar, as the code Carrie wrote moves just the header and this is not part of the header. It is its own div ABOVE the header. Here is what Carrie wrote:
//* Reposition header outside main wrap remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_do_header' ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ) ; add_action( 'genesis_before', 'genesis_header_markup_open', 5 ); add_action( 'genesis_before', 'genesis_do_header' ); add_action( 'genesis_before', 'genesis_header_markup_close', 15 );
My thought is I need to switch 'header' to 'swank_top_bar' or something. OR change the PHP code from "genesis_before_header" to "genesis_before":
//* Add Top Bar Above Header add_action( 'genesis_before', 'swank_top_bar' ); function swank_top_bar() { echo '<div class="top-bar"><div class="wrap">'; genesis_widget_area( 'top-bar-left', array( 'before' => '<div class="top-bar-left">', 'after' => '</div>', ) ); genesis_widget_area( 'top-bar-right', array( 'before' => '<div class="top-bar-right">', 'after' => '</div>', ) ); echo '</div></div>'; }
Would ^that code work? I'm nervous to play around with the php too much.
July 31, 2014 at 11:37 pm in reply to: Remove Sidebar from custom posts or adding sidebar to blog? #116531hmistlerMemberAH I see what you are saying....that worked perfectly, thank you!!!!
July 31, 2014 at 11:01 pm in reply to: Remove Sidebar from custom posts or adding sidebar to blog? #116528hmistlerMemberUnfortunately on those portfolio pages I do not have the option to write in any conditionals; it doesn't give me any layout options as in other genesis page. Still think this may have to go in functions.php I just don't know what the correct code is to remove a sidebar from posts!
July 31, 2014 at 10:38 pm in reply to: Remove Sidebar from custom posts or adding sidebar to blog? #116526hmistlerMemberThanks for the replies...I tried setting the theme's default layout to full width, then checking the content-sidebar option in the page layout on the News page - still nothing. I feel like I might need to add some PHP code to make the sidebar appear, but how?
Or what code can I add to remove the sidebar from the portfolio pages? I was able to add in PHP code to remove the page title from the individual portfolio pages, so I know they can be tweaked in the main functions.php file.
July 18, 2014 at 11:02 am in reply to: Drop Shadow / full width image under header in Modern Portfolio #114814hmistlerMemberThanks! I purchased the Genesis Extender plugin and I'm working with that now - I think in order to do what I want I will have to build out a bunch of widgets, as I've heard many people talk about doing. Thanks for the push in the right direction!
hmistlerMemberLove your site! Very clean & beautiful. I'm also curious about your icons - how did you get them to change color on the rollover? I thinking of adding some images to my site and having the images change on a roll over, but haven't gotten that far yet.
-
AuthorPosts