Remove image title and info on attachment page

Community Forums Forums Design Tips and Tricks Remove image title and info on attachment page

This topic is: resolved

This topic contains 4 replies, has 3 voices, and was last updated by  AstroLass 3 months, 1 week ago.

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

    Remi
    Member
    Post count: 1

    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

    #84930

    braddalton
    Participant
    Post count: 9916

    Link to an attachment page please.

    Is your theme using XHTML or HTML 5?


    #84931

    braddalton
    Participant
    Post count: 9916
    #85511

    Remi
    Member
    Post count: 1

    Thanks, it worked perfectly !

    #111258

    AstroLass
    Member
    Post count: 9

    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

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

You must be logged in to reply to this topic.