• Zur Hauptnavigation springen
  • Skip to main content
  • Zur Hauptsidebar springen
  • Zur Fußzeile springen
Logo

CITROWEB Webdesign

Erste Wahl für Ihren Onlineauftritt

  • Home
  • Leistungen
    • Webdesign, Webentwicklung und Beratung
    • Online-Shops mit WooCommerce
    • Technische Unterstützung für WooCommerce-Shops
    • Suchmaschinenmarketing
      • SEO: Ihr Webauftritt erhält mehr relevante Besucher
      • SEA: Suchmaschinenwerbung für Ihren Webauftritt
    • Webhosting
  • Blog
  • Kontakt aufnehmen
Home » Blog » How to add logo in @2x Retina resolution for header image in Genesis

How to add logo in @2x Retina resolution for header image in Genesis

23. August 2022

Genesis uses the WordPress feature to put a logo in the header instead of the title and description. However, with the logo, the image size is set to the actual pixels.

To support double pixel density on Retina (iPhone) the logo image must have double the pixel size. The CSS property background-size is then used to set the normal width and height of the logo.

To implement this in the Genesis framework, proceed as follows:

  1. Overwrite standard functionality with
add_theme_support( 'custom-header', array(
	'header_image' => '',
	'header-selector' => '.site-title a',
	'header-text' => false,
	'height' => 150,
	'width' => 500,
) );

This can be extended either via the functions.php (only with your own theme which you develop yourself!) or e.g. via the plugin My Custom Functions.

2. height and width from the example above must be replaced with twice the size of the actual logo. So in this example the logo has the dimensions 250×75.

3. add in your own CSS:

/* replace width and height with actual size, it means half the size you used above in theme support for custom-header */
.header-image .site-title > a {
    background-size: <width>px <height>px;
}

Thanks to Anything graphic(https://anythinggraphic.net/override-header-image-logo-genesis-wordpress-retina-2x-version/)

Kategorie: Genesis Framework, mobile, WordPress

Haupt-Sidebar

  • How to remove dashicons in WordPress frontend?
  • How do I create a website (homepage) with ChatGPT?
  • Can I create a website (homepage) with ChatGPT?
  • iOS restrictions re: bringing up the keyboard on programmatic focus
  • iOS restrictions re: bringing up the keyboard on programmatic focus
  • Remove user listing from WP-JSON
  • Benutzerauflistung aus WP-JSON entfernen
  • What does „Video is not the main content of the page“ mean?
  • Was hat es mit „Das Video ist nicht der Hauptinhalt der Seite“ auf sich?
  • Remove WordPress logo from toolbar
  • Efficient onboarding simplified: LearnSuite – the cloud application for digital onboarding
  • Wir stellen vor: LearnSuite – Die Cloudanwendung für digitales Onboarding
  • Howto: How do I create a website (homepage) with ChatGPT?
  • Howto: Wie erstelle ich mit ChatGPT eine Website (Homepage)?
  • Can I create a website (homepage) with ChatGPT?
  • Kann ich mit ChatGPT eine Website (Homepage) erstellen?
  • Set noindex nofollow via .htaccess HTTP header
  • Über .htaccess X-Robots-Tag noindex nofollow setzen
  • How to remove WordPress Dashicons in frontend?
  • Wie lassen sich Dashicons im WordPress-Frontend entfernen?
  • DSGVO (3)
  • GDPR (3)
  • Genesis Framework (10)
  • Genesis-Framework (9)
  • Google Search Console (4)
  • Google Search Console (4)
  • Linux (3)
  • Linux (3)
  • mobile (3)
  • Mobile (3)
  • Network (1)
  • Netzwerk (1)
  • SEO (5)
  • SEO (5)
  • Trends (3)
  • Trends (4)
  • Uncategorized (3)
  • Web development (1)
  • Web hosting (1)
  • Webentwicklung (1)
  • Webhosting (1)
  • WooCommerce (9)
  • WooCommerce (9)
  • WordPress (24)
  • WordPress (23)

Footer

Logo




© 2026 CITROWEB
  • Datenschutz
  • Impressum