Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5322

    Hi,

    I’d like to have different logo image on home and other pages. I’d like to remove anchor from logo on home page. I’ll be grateful for any suggestions.

    B.

    #49705

    Hey,

    could you be more specific?

    A) You want to have 2 logo’s, one for your homepage and one for all the other pages?

    B) You want to have a different logo for every page?

    This way I can give you very specific instructions on what to edit in which way.

    #49706

    Hi Chris,

    I choose A :)

    One logo on home page – not clickable, as it is home page. Second logo on every other page with link to home page.

    #49707

    Hey,

    open up velvetframeworkphpfunction-set-avia-frontend.php and replace:

    if($logo = avia_get_option('logo'))

    with:

    if(is_home() || is_front_page()){
    $logo = "<img src="http://my-image.jpg" alt='alt-text' />";
    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."</a></h1>";
    }
    else if($logo = avia_get_option('logo'))

    Instead of http://my-image.jpg fill in your image url and instead of alt-text use your alt text. If you’d like to point the logo link to a different page replace “.home_url(‘/’).” (including ” ” !) with any url you like.

    #49708

    Works just like a charm. Thank you!

    #49709

    Glad that I could help you :)

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

The topic ‘Differetn logo image on homepage’ is closed to new replies.