• 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

Workstation Pro Theme svg Logo in Header

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 › General Discussion › Workstation Pro Theme svg Logo in Header

This topic is: not resolved

Tagged: svg vector header image workstation

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 2 months ago by cyanoorange.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 26, 2016 at 7:45 am #184446
    cyanoorange
    Participant

    Hi everyone,
    I will use the workstation pro theme and would like to use the svg-file-format as haeder image. Unfortunately this is not supported.
    How can I change the theme, so that I could use an svg-file for the header image.
    I know how to make an upload for svg possible:
    //* svgs können hiermit in die Mediathek geladen werden

    add_filter( 'upload_mimes', 'svg_upload_mediathek' );
    function svg_upload_mediathek ( $svg_mime ){
     $svg_mime['svg'] = 'image/svg+xml';
     return $svg_mime;
    }

    But I have no idea what I have to change, to get the svg at the place where the header image is located in the theme.
    I searched in the forum for that, but couldnt find an answer.
    Thanks in advance

    April 26, 2016 at 8:53 am #184450
    Victor Font
    Moderator

    Once you have SVG uploads working in WordPress, you should just be able to add the logo as with any image in the Appearance/Customize area.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 26, 2016 at 9:43 am #184452
    cyanoorange
    Participant

    Hi Victor,
    thanks for answering. No this doesnt work. I have the svg in the media library but if I add the loge in the Cutomize Area I get an error with the cropping screen.

    April 27, 2016 at 3:53 am #184499
    Victor Font
    Moderator

    There are a few things you can do them, I'm not sure which will work better for you.

    1. There are quite a few plugins in the WordPress repository that add SVG support to WordPress. You may want to try one.
    2. You could try adding the logo directly to the .site-title a class as a background image.
    3. You could modify the entire logo area and directly call the image as a foreground image. This will show you how: http://victorfont.com/genesis-seo-schema-site-logo/.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 27, 2016 at 4:16 am #184500
    cyanoorange
    Participant

    Dear Victor,
    thanks a lot!
    I was kind of stupid :/ . Sorry for that. I tried the wrong css statement. Now its working with this, just for anybody who has a dumb day too.

    First step in functions.php
    (to upload svg in the mediacenter)

    add_filter( 'upload_mimes', 'svg_upload_mediathek' );
    function svg_upload_mediathek ( $svg_mime ){
     $svg_mime['svg'] = 'image/svg+xml';
     return $svg_mime;
    }

    style.css in workstation Por Theme

    .header-image .site-title a {
        background: rgba(0, 0, 0, 0) url("http://127.0.0.1/test/wp-content/uploads/2016/04/mylogo.svg") no-repeat scroll 0 0 !important;
    }
  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ 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

© 2026 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