Svg logo - by slidebird - on WordPress WooCommerce support

This topic has 6 replies, 3 voices, and was last updated 8 years, 11 months ago ago by Eva Kemp

  • Avatar: slidebird
    slidebird
    Participant
    May 4, 2015 at 15:45

    Hi there

    I found on a privious post that your support closed with the comment “svg logo is not possible” … but it is… you just have to install one of many svf plugins and it works… but of course not in safari…

    i found an workaround with an embedded solution in the <body> tag like

    <embed src=”file.svg” type=”image/svg+xml”></embed>

    so it worked on an simple WordPress installt but i your header.php is way to complex for me… there is no closing body tag? can you help me where to put this line in without breaking the entire site?

    thx

    5 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    May 4, 2015 at 18:21

    Hello,

    You can add the code in header.php after the line 42.

    Regards,
    Eva Kemp.

    Avatar: wholeman
    wholeman
    Participant
    May 22, 2015 at 04:29

    Hello,

    I also want to make logo with SVG file.

    In the header.php, which part could I add the svg file link?

    Avatar: Eva
    Eva Kemp
    Support staff
    May 22, 2015 at 08:44

    Hello,

    Open wp-content/themes/legenda/framework/theme-functions.php file on line 948 and replace the code <img src="<?php echo $logoimg ?> with the link to your logo image <img src="http://your_link>.

    Regards,
    Eva Kemp.

    Avatar: wholeman
    wholeman
    Participant
    May 25, 2015 at 13:52

    Dear Eva,

    I changed all code that you picked to <img src="www.brownbagcoffee.co.kr/wp-content/uploads/brownbag/logo_002.svg" /> and it still does not work.

    Please check again.

    Regards,

    Avatar: Eva
    Eva Kemp
    Support staff
    May 25, 2015 at 17:05

    Hello,

    I’ve added the code in functions.php of your child theme:

    if (!function_exists('etheme_logo')) {
        function etheme_logo() {
        	global $panel_filters;
            $logoimg = etheme_get_option('logo');
            $logoimg = apply_filters('etheme_logo_src',$logoimg); 
        	if($panel_filters) {
            	$logoimg = apply_filters('logo_panel_filters',$logoimg); 
        	}
        	?>
            <?php if($logoimg): ?>
                <a href="<?php echo home_url(); ?>"><img src="http://www.brownbagcoffee.co.kr/wp-content/uploads/brownbag/logo_002.svg" alt="<?php bloginfo( 'description' ); ?>" /></a>
            <?php else: ?>
                <a href="<?php echo home_url(); ?>"><img src="www.brownbagcoffee.co.kr/wp-content/uploads/brownbag/logo_002.svg" alt="<?php bloginfo('name'); ?>"></a>
            <?php endif ;
        }
    }

    Please clear browser cache and check the logo.

    Regards,
    Eva Kemp.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.