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

    Hi guys —

    I’ve got a custom template that I’m using for some client pages — I would like the logo to not be a link on that page. From What I’ve seen, I think the custom page contents really deals with the area beneath the header (I don’t know if this will impact things).

    Even if I have to kill the logo link site-wide, that will be okay. I am still building the balance of the site out, so for now any solution that stops the logo from being a link will work. Thanks!

    #119708

    Open up wp-contentthemesangularframeworkphpfunction-set-avia-frontend.php and replace:

    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;
    }

    with:

    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'>".$logo."$sub</$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'>".$logo."$sub</$headline_type>";
    }

    return $logo;
    }

    You can also add the code to the bottom of functions.php – then you don’t need to modify function-set-avia-frontend.php

    #119709

    Excellent. Thanks!

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

The topic ‘unlink logo’ is closed to new replies.