WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adjusting Default Attachment Size on Attachment Page (4 posts)

  1. HommeT
    Member
    Posted 4 years ago #

    By default, on my self-hosted version of WordPress, the attachments on my attachment pages are small. Since I didn't know how to go about changing the size of them myself, I used a hack to make the widths of attachments to appear with a 600 pixel width. But the hack does not allow the new image that appears to link to it's full size view, and the default attachment thumb is still right below it. See example here: http://hommetimes.com/2010/02/prada-fall-2010-mens/prada-fall-2010-2/

    Is there any way for me to change the default size of the attachment or get the new attachment that appears to link to it's full size view?

  2. HommeT
    Member
    Posted 4 years ago #

    I just realized that the link to the attachments on my attachment pages is linked to my Single.php file as "<?php the_content(); ?>". When I try removing the "<?php the_content(); ?>" or editing it, it also removes the content from my posts. So, how do I go about adjusting the size of the default attachment without disrupting the content? Do I need to create an Attachment.php file?

  3. tluskie
    Member
    Posted 4 years ago #

    To get rid of that extra image, you could just do a quick/dirty CSS hack.

    Add this to your style sheet:

    .attachment-medium{display:none}

  4. HommeT
    Member
    Posted 3 years ago #

    Thanks! It worked!

Topic Closed

This topic has been closed to new replies.

About this Topic