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 1 year ago.

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

    handig
    Participant
    Post count: 7

    How to replace the Prose background header image with a real image logo using simple hooks or custom code?

    Background:
    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. 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:
    <div align=”left”>

    SITE DESCRIPTION

    </div>
    (source: http://www.magnet4marketing.net/2010/12/18/how-to-add-custom-header-logo-to-studiopress-premium-wordpress-themes/ )

    Questions:
    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?

    http://fotorijk.zzpmarketing.com/
    #63201

    John
    Participant
    Post count: 157

    handig,

    What happened when you tried that tutorial?

    John


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

    #63240

    handig
    Participant
    Post count: 7

    Hi,
    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.