Community Forums › Forums › Design Tips and Tricks › Style attachment page?
Tagged: attachment page
This topic contains 5 replies, has 2 voices, and was last updated by braddalton 4 months ago.
-
AuthorPosts
-
January 13, 2013 at 6:59 pm #11709
Hello!
I am trying to make some tweaks to my attachment page -
Here’s an example
http://popbytes.com/who_is_ready_for_american_idol_season_twelve/wis_5362/
I would like to remove all the post info and the meta stuff – and the author box -
Also Ideally I wish I could have previous and next buttons for the images within this particular gallery, which you can see here
http://popbytes.com/who_is_ready_for_american_idol_season_twelve/
I made an attachment.php file and put some stuff in there, like removing the meta but it didn’t work
I am pretty savvy with figuring stuff out, I think I just need some basic direction on which way to go!
Thanks in advance!
MK / PopBytes
January 19, 2013 at 1:23 pm #13121Use Genesis Simple Edits and/or Genesis Simple Hooks plugin for this.
Unhook all the stuff you don’t want including the author box, post info and post meta data.
This plugin is great for images http://wordpress.org/extend/plugins/carousel-without-jetpack/
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.January 19, 2013 at 1:25 pm #13123Yes, I could do that but then it would remove it everywhere, I only want to remove it specifically on the attachment page
January 19, 2013 at 1:30 pm #13126Well then you could use a conditional tag http://codex.wordpress.org/Conditional_Tags#A_Single_Page.2C_Single_Post_or_Attachment
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered.January 19, 2013 at 1:48 pm #13131I think I am getting there – would the syntax be like this? Am I close? I tried to place in functions.php and it didn’t work
<?php
if ( is_attachment() ) {
remove_action(‘genesis_after_post_content’, ‘genesis_post_meta’);
}
?>January 20, 2013 at 8:20 am #13271Here’s your answer here:
http://my.studiopress.com/snippets/post-info/
http://my.studiopress.com/snippets/post-meta/
Change the conditional tag
WordPress Developer & Consultant
Brad Dalton @ WP Sites – Click Here to Get Genesis Child Theme Tips Delivered. -
AuthorPosts
You must be logged in to reply to this topic.