Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #192071

    Hey guys I was trying to upload an svg graphic for my site so it is retina friendly. svg files have never been more important than now with the retina screens as small png files aren’t scalling up well for retina devices (unless of course you are uploaded these graphics as 2x the intended size and then shrinking them with css for other device) or the many other ways you can make something render well on various devices and screen sizes.

    If we are using graphics that can be vector instead of raster photos, an svg file for this is perfect. When you try to upload a svg file in the theme it wont do it and you get a message that svg are not web safe graphics. Why is this? isn’t svg fully supported now?

    #192422

    Hey allegrabillings!

    It’s not theme related but WordPress, however you can allow svg upload by adding this to functions.php: http://css-tricks.com/snippets/wordpress/allow-svg-through-wordpress-media-uploader/

    Regards,
    Josue

    #193043

    I will give this a try thanks

    #193074

    We looking forward to hearing from you :)

    Regards,

    Josue

    #206838

    Hey Allegrabillings!


    @Allegrabillings

    First of all thanks a lot for the code you provided under this thread,
    https://kriesi.at/support/topic/add-social-icons-to-nav-like-the-kriesi-site/

    I followed your intructions and got the similar look. All is working very well and really very thanks for that but the only problem I’m facing is when I open it on mobile, responsive design.
    The social icons are not placed well somehow. Could you please guide me if there is a solution of this problem? here’s link to our website,
    http://goo.gl/sK17J

    Could you please help me?

    #206939

    khalidmuharragi, thanks for the compliment of course but really it was just a hack. I just tried my best to duplicate what Kriesi did. So credit goes to him or course. But to your question. The code completed the way Kriesi does it, is more elegant, his logo is the hexagon and it is the same size regardless of browser window. He embellishes is with adding the text to the right when the browser window is large and then hides the text as the browser gets smaller. With the social icon code modified this way on a mobile browser screen size the social icons are left in the middle of the header. When Kriesi hides the logo text he is left with a clean header. Logo left social icons center and nav menu button right.

    You however on running into the problem that I had. Your logo is horizontal. so it is taking up the space were the social icons end up. Before I tell you what I did know this. I am only learning css and html, and php is foreign to me so take this with a grain of salt please. Depending on the number of social media links you try and use you could altogether have another problem. There is only so much room at the top between the logo and menu button. So i found with even say 5 icons you were running out of room up there so bear that in mind.

    So you have probably many solutions but the simple answer is you need to change/shrink your logo as the browser window gets smaller. You can probably accomplish this many ways, My first thought would be in the header php file. actually make 2 logos with unique ids. then with Media queries in your custom css file, show the large full logo in all browsers but the small mobile size and at that time hide the large one and show the small one. I however doen’t know how to right php so I didn’t do it this way. So if someone knows how please add this solution as it is probably the best. If there is a better one then please enlighten us.

    What I did was a bit of a hack. I hid the logo image and add a background that was a icon version of my logo when the screen size got to a certain size. This works but it has one huge drawback. The clickable portion of the logo is still actually the original wider size and if someone tries to drag the icon to the desktop they actually get the logo not the visible icon. If this doesn’t bother you or you can tweek it to make it better, then make a smaller squareish version of your logo and then add this code.

    /* Smaller than standard 960 (devices and browsers) (ipad Portrait)*/
    @media only screen and (max-width: 989px) {
    
    	/* adds the jack and addi icon as a background */
    	div .logo {
    		background: url(https://yourownpath/logoicon.png) top left no-repeat;
    		top: 11px;
    	}
    	
    	/* makes the default logo transparent */
    	.logo img {
    		opacity: 0;
    		filter: alpha(opacity=0); /* For IE8 and earlier */
    	}
    	
    }

    I then had a problem with placement on a vertical iphone so i did this. yours will be different based on your logo size. I also enlarged the social icons for more ease of clicking on a phone

    @media only screen and (max-width: 767px) {
    /* Add your Mobile Styles here */
    
    	/* moves the icon logo on smaller screens */
    	.responsive .mobile_slide_out .logo {
    		margin-top: 10px;
    		margin-bottom: -10px;
    	}
    	
    	/* change social icons */
    	#top .social_bookmarks li a {
    		font-size: 19px;
    		width: 40px;
    	}
    	
    }

    Hope this helps

    #207194

    Hopefully that helps and thank you for offering what you’ve done :)

    #207303

    Big big thanks to you!
    I really appreciate you explained everything in details as I’m actually an Animator not programmer in any way and all the coding I did for this website is just because of amazing kriesi and the team and of course this forum.
    I highly appreciate all the moderators. these guys are amazing..
    Regarding the code you provided.. I’ll try my best to get it done through your guidance.. :)

    Thanks again

    #207401

    Hey!

    I’ll leave this thread open (for follow up questions).

    Best regards,
    Peter

    #209356

    Hey!
    This technique of using two logos worked pretty fine. The only problem I’m facing is the YouTube icon as mobile size is getting overlapped by the menu’s button. I wish if there is a way to move all the social icons little bit to the left only for mobile size.

    #209364

    Hi,

    Can you post a link to your website please?

    Regards,
    Josue

    #209367

    Here it is,
    http://goo.gl/sK17J

    #209393

    Hi!

    You can add this on your custom.css or Quick CSS to move the social bookmarks or icons on mobile view:

    @media only screen and (max-width: 767px) {
    .responsive #header .social_bookmarks {
    left: 0;
    }
    }

    Regards,
    Ismael

    #209463

    Works perfect…
    Big thanks man.. :)

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘svg files’ is closed to new replies.