Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi bozicso,

    thanks for using MH Newsdesk lite.

    The size of the image on the attachment page isn’t defined by the theme, but this is handled by WordPress itself. As far as we know, WordPress makes use of the Medium image size there which you can change in your WordPress dashboard under Settings => Media and afterwards you should regenerate your thumbnails.

    As an alternative, if you are familiar with coding, you could also make use of a child theme and then create a custom attachment.php file to output content based on your personal requirements.

    Thread Starter bozicso

    (@bozicso)

    You’re wrong. When I switch to a different themes, then it is good

    Have you done what has been suggested above? As mentioned, the default image size on the attachment page is defined by WordPress itself, not by the theme…

    When I switch to a different themes, then it is good

    In that case the theme you’re using either has a custom attachment.php file or it has set a different default for the Medium image size in WordPress.

    Thread Starter bozicso

    (@bozicso)

    yes, have image.php

    That wasn’t what has been instructed. Please do exactly as stated above and simply change the Medium image size in your media settings and then regenerate your thumbnails.

    In case you want to code a custom template for the attachment page instead, you also might want to have a look at the WordPress template hierarchy.

    If you still don’t believe us that by default WordPress displays the Medium image size on attachment pages, then please do some research as this information is stated in several tutorials and documentation as well, for example here and here.

    Quotes:

    By default, the attachment page will display the “medium” size of the image (the size options thumbnail, medium and large can be configured in Settings ? Media, full size is the actual image size)…

    By default, WordPress is coded to display the medium size image.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Attach image size’ is closed to new replies.