The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] No max image size on page after thumbnail link (9 posts)

  1. ColourDreamer
    Posted 9 years ago #

    I love the new linking to an image on a page feature in WordPress 2.1, but it doesn't work right and I can't edit the files. I found the file template-functions-post.php in wp-includes, but I can't figure out how to work it. It has this $max_dims, but where is that set? I want the max to be no smaller than 450 pixels wide, not sure how tall, and I'd even like NO max.

    I also don't want it to link to the file itself, I want everyone to stay on my site and template.

    I also want to make the WordPress thumbnail size larger (like 200 pixels tall), how could I do that?

  2. ColourDreamer
    Posted 9 years ago #

    Okay, nothing I change in that file results in anything different in my post. Not even centering the image. What is wrong?

    Okay, it's true. Nothing I edit in that file changes anything, I even made it so the image shouldn't even be there. I know it's the right file, because the source showed the p class="attachment" code that's in that file.

    AAAAAAGGGGGGGGGHHHHHHHH! I cannot rest until I get this!!! I want to pull my hair out!!! My blog looks so dumb. Can't even have new posts because I'm a perfectionist and this is driving me crazy!

  3. ColourDreamer
    Posted 9 years ago #

    Okay I discovered it is not that file, but a template file (that I didn't have yet). All is working but one thing, but this now belongs in a different forum, so I'll post there.

  4. MrMelB
    Posted 9 years ago #

    I am having the same problem!
    Can you tell me how you fixed it?


  5. markrob
    Posted 9 years ago #

    i'm having the same problem too. how did you fix it?


  6. sp71
    Posted 8 years ago #

    "I also don't want it to link to the file itself, I want everyone to stay on my site and template."

    How did you fix this? you mention a new temp file but what code?????

    Please help as I have spent a few days on this now!!!


  7. Copy the theme's index.php file to attachment.php. Edit that theme file, it will be used for all attachment pages.

    This is all explained in the Template Hierarchy part of the codex.

  8. sp71
    Posted 8 years ago #

    Thx for quick reply!

    I had read and re-read the Template Section but could not find how to control image files.

    Anyway, I found this article: http://wordpress.org/support/topic/78640?replies=12

    and it solved it for a Post but not a page?

    Can you help me with some code to add for Pages?

    I tried replacing the folloing "post" entries with "pages" but it did not work. Please help. THX

    <img src="<?php echo $post->guid; ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" <?php echo $image_info[3]; ?> />

  9. Attachments are not Pages or Posts. They're attachments. So I don't understand your question.

Topic Closed

This topic has been closed to new replies.

About this Topic