• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Attachment page trouble in Pro Themes – no image

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Attachment page trouble in Pro Themes – no image

This topic is: not resolved

Tagged: attachment image gone, attachment page, html 5

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 8 months ago by dreamdancer.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 21, 2015 at 1:09 am #166184
    dreamdancer
    Participant

    I don't know what is going on, but it is consistent. Whenever I add either image.php or attachment.php to a Pro theme (I am working mostly with Lifestyle Pro, but have tested several other Pro themes, same problem) when the Attachment page is then viewed from the gallery the image for the Attachment page is not there. I have tried many versions of coding the image.php page, the last try was merely copying the page_landing.php page and renaming as image.php. I have tried code that has been posted here. I have tried several websites and all the same results. As soon as I upload the custom attachment page I have made, the image on the Attachment page disappears. If I remove the custom page, the image is there again, but I can't customize the attachment page which I need to do.

    Is anyone else have this issue? Older themes like Streamline are working fine. Most of my sites are at the current WP version and Genesis version, but this is also happening on a site with WP 4.2 and Genesis 2.12

    Link to one example is below (this is a custom theme based on Lifestyle, but the problem exists if I use Lifestyle with no changes to the code at all)

    thanks

    http://llvann.com/preview/latest-work-3/
    September 21, 2015 at 6:42 am #166203
    Victor Font
    Moderator

    Take a look at this article by Brad Dalton, perhaps it will help: http://wpsites.net/web-design/genesis-basic-custom-attachment-page/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    September 21, 2015 at 1:52 pm #166238
    dreamdancer
    Participant

    That is the code I am i tried first for the Attachment page. I do not get any image showing up in the Pro themes I am using if I use image.php or attachment.php.

    September 21, 2015 at 6:41 pm #166276
    dreamdancer
    Participant

    I just did another test of the Sample theme and again if I add the image.php the attachment image is gone from the attachment page. I use Espresso to figure out my CSS, I can navigate a page and see all of the elements. When I don't use image.php in the theme I see the image with a class of img.attachment-medium. When I add image.php back into the theme the image.attachment-medium is gone, the p.attachment is gone and even div.entry-content is gone from the attachment page. All that is there is entry -meta, entry-title and this section - article.post-192.attachment.type-attachment.status-inherit.entry.has-post-thumbnail

    This is driving me crazy, it is crucial for one of my projects to have custom attachment pages and I would rather not go backwards to the xml style themes and move forward to the html 5 themes.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble