• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to user navigation

PopWP

WordPress and Genesis Tutorials

  • Get Started
  • About
  • Archive
  • Services
  • Membership
  • My Account

SVG Logo in Genesis sample theme

Last Updated on May 5, 2018 Favorited: 0 times

Theme Logo is a theme feature, first introduced in Version 4.5. This feature allows themes to add custom logos.

SVG images looks crisp, sharp and easy editable. I love SVG <3 because there is large collections of SVG icons i can use to beautify a site and it is easy to edit and customizable.

Custom Logo feature for a theme is the most recommended method for adding logos in WordPress. The benefit is built-in rich schema feature includes itemprop=”logo” microdata for logo image element.

Custom headers could be messy and not easily manageable.

Wait,
The new Genesis Sample theme support custom logo feature by default so we can use a.png, jpg or even .svg logo easily and that too with itemprop=”logo” schema element.

The two methods to use SVG logo in new Genesis Sample theme
1. As an Inline image
2. As a Background image

Prerequisite

The WordPress doesn’t support .svg image upload support for security reasons and blocked from uploading. We need to allow .svg uploads safely. The best way to do it is to use SVG Support plugin. Install and Activate it.

1. SVG as an Inline Logo

Upload your SVG logo and add it to the header by visiting “Appearance” >> Customize >> Site Identity and add it.

Click Published.

Sometimes, the logo seems to disappear. This is because of width problem. add this CSS to fix that. Change as per your needs.

.wp-custom-logo .title-area {
    max-width: 50px;
    width: 50px !important;
    padding-top: 0;
}

Division by zero warning with SVG logos

2. SVG as a Background Logo

Upload the SVG logo in your themes folder under /images/ or upload it using the media uploader.

use this CSS and change the SVG URL.

/* CUSTOM Title Area SVG
--------------------------------------------- */
.site-title > a {
    background: url(/images/logo.svg) no-repeat !important; //change path of the logo
}

.title-area {
    float: left;
    height: 55px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 16px;
    padding: 0;
    width: 133px;
}
.site-title > a {
  background-size: contain !important;
  background-position: left center !important;
  float: left;
  min-height: 40px;
  width: 100%;
}

.site-title,
.site-description {
  display: block;
  height: 0;
  margin-bottom: 0;
  text-indent: -9999px;
}

This doesn’t include the schema for the logo but works perfectly.

Related Posts

  • Change Logo On Scroll in Genesis Sample
  • Magazine style Singular Post Design in Genesis Sample
  • Post Page Blog Archive Template with Layouts in Genesis
  • Site Inner with container background in Genesis Sample
  • Remove Responsive Menus in Genesis Sample 3.0.0+

Categories: Free Content, Genesis Tutorials Tags: Genesis Sample, Logo, SVG logo

Reader Interactions

Primary Sidebar

Search

WPEngine WordPress Hosting, Perfected.

Hosting You are looking for?.
Perfect solution for small business to global enterprise.

Learn more

StudioPress Genesis Theme Framework

The No.1 Theme Provider.
Creative, SEO rich Theme for all niche projects.

Learn more

Categories

  • Free Content
  • Genesis Tutorials
  • Premium Content
  • Snippets
  • What's New?
  • WordPress Tutorials

Tag Cloud

Archive Background Section blog canvas menu center logo columns conditional tags CSS CSS Grid custom Customizer custom post type Custom Post Types custom template Custom Widget effect eNews Extended Featured Image front-page Genesis Genesis Sample header right hero section Image Background js layout left menu Logo menu Navigation Menu newsletter post page related posts responsive menu search search widget Shrinking Logo site header slide in-out Stylesheet Template Utility Bar Video Background widgets WordPress

Built with Genesis Framework + WordPress by Aryan Raj

  • Contact
  • FAQ
  • Disclaimer
  • Privacy Policy
  • Copyright Policy
  • Terms of Service