How to replace the Prose background header image with a real image logo using simple hooks or custom code?
I want to do this as the current header doesn't look to well if shown on a mobile device and also because a background image isn't used when sharing a website for example with Facebook.
a. Tried this approach but couldn't get it to work. http://blackhillswebworks.com/2013/05/10/how-to-replace-the-studiopress-background-header-image-with-a-real-image-logo/
b. Tried this simple hooks solutions which is to unhook genesis_do_header function from Header hooks and to add this code:
(source: http://www.magnet4marketing.net/2010/12/18/how-to-add-custom-header-logo-to-studiopress-premium-wordpress-themes/ )
1. Is it possible somehow to get the SITE-URL and SITE DESCRIPTION filled in 'automatically' for example with some Genesis function like genesis_title? If so what is the code?
2. This approach uses simple hooks, but then I'm dependent on simple hooks. Can this be done with custom code, and if so how should this code look like?
I just tried to recreate the problem but discovered that your code is working and doing exactly what I wanted to do in custom code Prose.
In step 4 I chose a location not under the theme folder but above. So I just saw that your code adds the stylesheet directory! I overlooked that so that's why the image didn't show.
img src="'. get_stylesheet_directory_uri() .'/images/logo.png"
Thanks for the help.
Both solutions help. But I prefer the custom code approach.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!