Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22613

    Is there a way to change the url to another address in the Flashlight Theme specifically.

    #116401

    Hi,

    Edit framework > php > function-set-avia-frontend.php and find this code

    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 = "", $sub = "", $headline_type = "h1")
    {
    $use_image = apply_filters('avia_logo_filter', $use_image);
    $headline_type = apply_filters('avia_logo_headline_filter', $headline_type);
    if($sub) $sub = "<span class='subtext'>$sub</span>";

    if($logo = avia_get_option('logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $logo = "<$headline_type class='logo'><a href='".home_url('/')."'>".$logo."$sub</a></$headline_type>";
    }
    else
    {
    $logo = get_bloginfo('name');
    if($use_image) $logo = "<img src=".$use_image." alt='' title='$logo'/>";
    $logo = "<$headline_type class='logo bg-logo'><a href='".home_url('/')."'>".$logo."$sub</a></$headline_type>";
    }

    return $logo;
    }
    }

    Replace it with

    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 = "", $sub = "", $headline_type = "h1")
    {
    $use_image = apply_filters('avia_logo_filter', $use_image);
    $headline_type = apply_filters('avia_logo_headline_filter', $headline_type);
    if($sub) $sub = "<span class='subtext'>$sub</span>";

    if($logo = avia_get_option('logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $logo = "<$headline_type class='logo'><a href='http://www.kriesi.at'>".$logo."$sub</a></$headline_type>";
    }
    else
    {
    $logo = get_bloginfo('name');
    if($use_image) $logo = "<img src=".$use_image." alt='' title='$logo'/>";
    $logo = "<$headline_type class='logo bg-logo'><a href='http://www.kriesi.at'>".$logo."$sub</a></$headline_type>";
    }

    return $logo;
    }
    }

    You can enter the URL on these parts of the code

    $logo = "<$headline_type class='logo'><a href='http://www.kriesi.at'>".$logo."$sub</a></$headline_type>";

    $logo = "<$headline_type class='logo bg-logo'><a href='http://www.kriesi.at'>".$logo."$sub</a></$headline_type>";

    Regards,

    Ismael

    #116402

    It worked! Thank you very much.

    #116403

    Hi,

    Glad we could help. :)

    Regards,

    Ismael

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

The topic ‘Change Logo URL to a New Address in Flashlight’ is closed to new replies.