Support » Theme: Twenty Eleven » Which file name has front page image codes?

  • Hello,

    I want to edit the codes for front page images to be without link. What is the file name that contenting the front page codes?

    Please help. Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You mean the image below the site title/tagline and above the menu right? If so, that code is located inside of header.php

    Line 99 starts the link

    <a href="<?php echo esc_url( home_url( '/' ) ); ?>">

    Line 122 closes it

    </a>

    So if you delete just lines 99 and 122, not the content in between it’ll remove the link around the image but leave the image intact.

    Thank you Jarret.

    Yes I mean the image below the site title/tagline and above the menu.

    I will delete just lines 99 and 122 in child theme to avoid overriding by every time new version of theme update.

    To achieve it (no click no link on image), how can I create codes in Additional CSS/customize instead?

    Please help. Thanks in advance!

    You want to disable the link on the image using CSS instead of modifying the source code? Removing it through the source code is your best bet, but it looks like you may be able to disable the link on the image using the CSS provided in the chosen answer here:

    https://stackoverflow.com/questions/2091168/how-to-disable-a-link-using-only-css

    I’ve never tried using that code personally so I’m not sure how it works across all browsers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Which file name has front page image codes?’ is closed to new replies.