• 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

SVG in Genesis Executive Pro Theme

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 › SVG in Genesis Executive Pro Theme

This topic is: resolved

Tagged: header image, Logo, SVG

  • This topic has 11 replies, 3 voices, and was last updated 6 years ago by Sapphira.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • May 16, 2017 at 5:30 am #206522
    Sapphira
    Member

    Hi everyone

    I wanted to use an SVG image file to have a crisp logo. I followed all the instructions from Studio Press to change sme code in the functions.php child theme and CSS style sheet but after completing all the steps I had no image showing, it was just blank!

    Any help, suggestions would be much appreciated.

    Many thanks,
    Sapphira.

    May 16, 2017 at 6:13 am #206529
    Victor Font
    Moderator

    Link to site please.


    Regards,

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

    May 16, 2017 at 6:22 am #206531
    Sapphira
    Member

    HI Victor

    Thanks for the reply.

    Below is the link to one of my websites. I have another one with same problem but if I can figure out problem then I will be able to sort other one out as well.

    Please not though that as it wouldn't work I reverted back to original hence you can now see the PNG header logo. So not sure if you'd need me to redo all over again before you can maybe see what's wrong.

    Many thanks for taking the time to reply 🙂

    https://lusowest.co.uk/

    May 16, 2017 at 6:45 am #206536
    Victor Font
    Moderator

    For us to help, we need to look at the code in the browser to determine what the problem could be. You may also want to take a look at Sridhar's tutorial: https://sridharkatakam.com/how-to-set-up-svg-logo-in-genesis/


    Regards,

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

    May 16, 2017 at 6:52 am #206537
    Sapphira
    Member

    Hi Victor

    Yes that's the one I followed to the book and didn't work. I obviously must have done something wrong but don't know what. I even tried a second time and same problem occured. Very frustrating! So I gave up and reverted back to PNG logo.

    I appreciate your help, but maybe I'll have to resign myself to the PNG logo for now and go back to this again when I feel ready to have another go but I fear I'll get the same issue as don't know what it is that I did or didn't do.

    Many thanks!

    May 16, 2017 at 8:56 am #206546
    Victor Font
    Moderator

    I've seen it where SVGs don't display because dimensions haven't been assigned in CSS. That's why I wanted to look at your code. If you use your browser's inspect tool, you'll see in the SVG is loading or not. If it is, you can play with the CSS to make to see what makes it appear. https://victorfont.com/how-to-use-your-browsers-inspect-tool/


    Regards,

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

    May 16, 2017 at 9:21 am #206549
    Sapphira
    Member

    HI Victor

    Okay thanks, got that. When I get the chance I will redo following the instructions again on sridharkatakam.com and then use the Firefox developer tool (already installed it) to play around with the code see if I can get the SVG image to show.

    Once again much thanks for taking the time to help. I will let you know if I have any success with it. Might have time to try this evening.

    Cheers,
    Sapphira.

    May 20, 2017 at 9:23 pm #206773
    Brad Dalton
    Participant

    Here's 3 ways to use a SVG as your logo or header image.


    Tutorials for StudioPress Themes & WooCommerce.

    May 21, 2017 at 4:55 am #206780
    Sapphira
    Member

    Hi Brad

    Many thanks for your suggestions. The 3rd method seems to be the most straigtforward one, but what do you mean by the child theme's image folder? Do you actually mean the stylesheet itself - add it after and within the body of /* ## Title Area ?

    Sorry to be a little vague but not an expert at this.

    Thanks again,
    Sapphira.

    May 21, 2017 at 6:14 am #206781
    Brad Dalton
    Participant

    Hello Sapphira

    This part of the CSS rule pulls the image named logo.svg from the images folder in your theme

     
    background: url(images/logo.svg);
    

    Tutorials for StudioPress Themes & WooCommerce.

    May 21, 2017 at 6:49 am #206782
    Sapphira
    Member

    Hi Brad,

    Okay, I got that.

    Thanks for taking the time to reply.

    I'll let you know how I get on.

    Cheers,
    Sue.

    May 21, 2017 at 1:17 pm #206806
    Sapphira
    Member

    HI Brad

    Had success with this but svg file is way too large. It has white space around it and despite trying various ways to crop it had no luck. So back to drawing board I'm afraid until I can figure out a way to do this.

    At least once I get around this I know how to add it 🙂

    So thanks for that.

    Best regards,
    Sapphira.

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 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

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