• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

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

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved

Tagged: custom code, Prose, Simple Hooks

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 8 months ago by handig.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 18, 2013 at 2:40 am #63151
    handig
    Participant

    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/
    September 18, 2013 at 8:45 am #63201
    John
    Participant

    handig,

    What happened when you tried that tutorial?

    John


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

    September 18, 2013 at 12:09 pm #63240
    handig
    Participant

    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.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble