Support » Themes and Templates » Question about attachment_id

  • Hello,

    I am using the standard [gallery] short code, when I click on one of those images in the gallery, I get taken to:

    ?attachment_id=146

    Where can I edit this template?

    Thanks for the help

    Mike

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    Forum Moderator

    Look for attachment.php or image.php in your theme. If you don’t have either of these, then your images will be using the single.php template. Failing that, index.php.

    Thanks esmi … but no luck. I played with attachment.php, image.php, single.php and index.php and nothing.

    Here is the page, maybe that will shed some light

    http://stonewalljets.ca/?attachment_id=146

    esmi

    (@esmi)

    Forum Moderator

    If there’s an image.php file in the theme, it should be used. Followed by attachment.php etc. What do you have in image.php?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Question about attachment_id’ is closed to new replies.