Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8872

    Is there a way to attach an absolute url (http://www.nameofthesite.com ) to the site logo instead of retrieving the site url that’s entered in WordPress?

    #62715

    I guess it’s this file that needs to be modified:

    function-set-avia-frontend.php

    and the function is: avia_logo

    How can it be done?

    #62716

    in framework/php/function-set-avia-frontend.php

    if(!function_exists('avia_logo'))
    {
    /**
    * return the logo of the theme. if a logo was uploaded and set at the backend options panel display it
    * otherwise display the logo file linked in the css file for the .bg-logo class
    * @return string the logo + url
    */
    function avia_logo($use_image = "")
    {
    if($logo = avia_get_option('logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $logo = "<h1 class='logo'><a href='http://www.nameofthesite.com/'>".$logo."</a></h1>";
    }
    else
    {
    $logo = get_bloginfo('name');
    if($use_image) $logo = "<img src=".$use_image." alt='' title='$logo'/>";
    $logo = "<h1 class='logo bg-logo'><a href='http://www.nameofthesite.com/'>".$logo."</a></h1>";
    }

    return $logo;
    }
    }

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Site logo with an absolute url instead of site url in WordPress’ is closed to new replies.