SVG graphics

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15145
    chrisjames
    Customer

      Hi all,

      I would like to use an SVG file for my logo and I want to use svg across the site but I cant upload it onto wordpress, I used some code:
      /* add svg */
      function custom_mtypes( $m ){
      $m[‘svg’] = ‘image/svg+xml’;
      $m[‘svgz’] = ‘image/svg+xml’;
      return $m;
      }
      add_filter( ‘upload_mimes’, ‘custom_mtypes’ );

      I can now upload but I cant select to use it in the customiser.
      I added some CSS:
      .header-image .site-title > a {
      float: left;
      min-height: 114px;
      width: 100%;
      background: url(images/logo_grey.svg) no-repeat left top !important;
      background-size: 338px 114px !important;
      }

      This has it showing now but correctly, and I also have to select a logo in the customiser and that gets hidden with the code i added above, but I feel this is all one big hack, can anyone help? thx

      #15146
      chrisjames
      Customer

        To make things easier I have removed all of that code and have it set as epik defaults, I have png for the logo for the time being.

        So my Question is this:
        How do i use SVG files in the epik theme?
        If anyone can point me in the right direction, it would be a great help ty

        #15148
        scooby
        Customer

          I’ve haven’t seen too many people using an SVG file in Genesis so I did a search on StudioPress’ forum and saw a couple posts mentioning it – http://www.studiopress.com/forums/?s=svg Take a look there and see if any of those posts have a solution. What works for one Genesis theme should work for any other Genesis theme since they are all built on the Genesis Framework.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.