Community Forums › Forums › Archived Forums › Design Tips and Tricks › Current Header not appearing, though it's set in the customizer
Tagged: Current Header
- This topic has 7 replies, 3 voices, and was last updated 4 years, 1 month ago by David Borrink.
-
AuthorPosts
-
March 11, 2020 at 1:47 pm #497270David BorrinkParticipant
I obtained an older Genesis site for handling maintenance. It was stuck on Genesis 2.10.1 because it was not HTML5-compliant. I learned that it needed converting and someone shared a link to a convertor site (https://cobaltapps.com/genesis-xhtml-to-html5-css-converter/) that updated the style.css for me. It worked fine and I was able to update the site to Genesis 3.3 afterwards.
But now the Current header isn't showing up. You can see on this screen shot (https://prnt.sc/rexqg4) that the site's header is still selected, but the header is displaying the site title and description.
I haven't dealt with converting an old theme to make it compatible with 3.0, yet. What detail am I missing?
https://thekennedyadventures.comMarch 11, 2020 at 2:09 pm #497271Victor FontModeratorConverting an old theme requires a lot more than just converting the style sheet. If the theme had custom code in functions.php, and by custom code I mean calls to Genesis hooks (actions and filters), they were written for the XHTML version of Genesis. You'll have to find the equivalent hooks in the new version of Genesis and rewite the PHP for compatibility.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?March 11, 2020 at 2:28 pm #497272David BorrinkParticipantOkay, so there's probably some header support in newer themes I need to look for. Thanks for pointing me in that direction, and apparently the limited info I found didn't cover that possibility. Thanks again, Victor. You're always a great help here.
March 11, 2020 at 6:11 pm #497279David BorrinkParticipantI found this in the Innov8tive theme's functions.php files, and it calls up the header. Removing it removes the site title and the site description.
/** Add support for custom header */ add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 250, 'header_callback' => 'innov8tive_admin_style' ) ); /** Register a custom callback to style the custom header */ function innov8tive_admin_style() { $headimg = sprintf( '#header { background: url(%s) no-repeat center; min-height: %spx; }', get_header_image(), HEADER_IMAGE_HEIGHT ); printf( '<style type="text/css">%1$s</style>', $headimg); }
I looked in Genesis Sample 3.0.0 and found this line of code... by removing it, it takes out the logo, when testing in Genesis Sample 3.0.0...
// Displays custom logo. add_action( 'genesis_site_title', 'the_custom_logo', 0 );
But, putting the action from Genesis Sample 3.0.0 into the Innov8tive theme doesn't bring the logo into the layout. I replaced the above code when trying.
So I found something current that works, but I'm not sure how to bring it into the old theme.
March 11, 2020 at 7:11 pm #497280AnitaKeymasterInnov8tive is a really old XHTML theme so you may not be able to get that to work with 3.0. I know from my previous time working with that theme, logos needed to be added manually via the stylesheet.
Love coffee, chocolate and my Bella!
March 12, 2020 at 6:48 am #497293David BorrinkParticipantThanks, Anita for that theme-specific tip. So it's not really a swap code situation, I'm thinking. I may have to go that route of using the stylesheet. I was wondering what kind of a fix to implement and it looks like that might be it unless I find otherwise.
March 12, 2020 at 11:06 am #497300AnitaKeymasterYes, I think so. The who coding structure in HTML5 is different than XHTML.
Love coffee, chocolate and my Bella!
March 19, 2020 at 6:43 am #497414David BorrinkParticipantI got it to work by putting it in the style sheet. Thanks Vic and Anita for your advice. This will have to be the fix until my client decides to update to a more current theme.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.