• 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

Remove image title and info on attachment page

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 › Remove image title and info on attachment page

This topic is: resolved

Tagged: attachment, editor, image, modern portfolio

  • This topic has 4 replies, 3 voices, and was last updated 10 years, 11 months ago by AstroLass.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 11, 2014 at 1:38 pm #84653
    Remi
    Member

    Hi

    I want to remove the image title et the informations on an attachment page, i have difficulties finding code snippet for attachment page but i found that for the home page :

    add_action('get_header', 'child_remove_page_titles');
    function child_remove_page_titles() {
      if (is_home()) {
        remove_action('genesis_post_title', 'genesis_do_post_title');
      }
    }

    so i have modified it to use it on the attachment page :

    add_action('get_header', 'child_remove_page_titles');
    function child_remove_page_titles() {
      if (is_attachment()) {
        remove_action('genesis_post_title', 'genesis_do_post_title');
      }
    }

    but it doesn't work.

    I have a similar code for the posts info but it doesn't work either.

    What's wrong with it ?

    I'm using the magazine pro child theme.

    Thanks

    January 13, 2014 at 2:56 am #84930
    Brad Dalton
    Participant

    Link to an attachment page please.

    Is your theme using XHTML or HTML 5?


    Tutorials for StudioPress Themes.

    January 13, 2014 at 3:35 am #84931
    Brad Dalton
    Participant

    Try this http://wpsites.net/web-design/remove-entry-title-entry-meta-from-attachment-pages-using-genesis/


    Tutorials for StudioPress Themes.

    January 16, 2014 at 11:00 am #85511
    Remi
    Member

    Thanks, it worked perfectly !

    June 23, 2014 at 8:48 pm #111258
    AstroLass
    Member

    I just did this, too, and, after MONTHS of fighting this, I FINALLY got it to work the way I want, thanks to your code. You have made my month.

    Thanks billions!!!

    Sandy

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 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

© 2025 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