Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24962

    Hi

    I keep getting a blank H1 tag from my logo picture.

    how do I remove it?

    thanks

    Frank

    #125325

    Hi

    Also, how do I add the <alt> tag to the logo pic?

    I’ve tried adding this when uploading the pic and inserting it from the media library, but the attribute doesn’t carry through.

    thanks

    Frank

    #125326

    Hi,

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

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

    Replace it with this code to remove the heading tag.

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

    Place your ALT text manually.

    Regards,

    Ismael

    #125327

    Brilliant!! thank you so much

    #125328

    Glad Ismael could help :)

    Let us know if you have any other questions or issues.

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

The topic ‘blank h1 tag in logo’ is closed to new replies.