Real image as header instead of background img wth Simple Hooks or custom code?

Community Forums Forums Design Tips and Tricks Real image as header instead of background img wth Simple Hooks or custom code?

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  handig 2 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #63151


    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.

    Tried solutions:
    a. Tried this approach but couldn’t get it to work.
    b. Tried this simple hooks solutions which is to unhook genesis_do_header function from Header hooks and to add this code:
    <div align=”left”>


    (source: )

    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?



    What happened when you tried that tutorial?


    John Sundberg |
    A WordPress developer’s toolbox: Firebug | WordPress Codex | Google ;)



    Small world.

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.