Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • #1405513

    Bei mir erscheinen die Beitragsbilder sehr groß, seit ich das Theme verwende.

    Wie kann ich die Bildgröße für die Beitragsbilder so einstellen, dass das komplette Bild angezeigt wird?


    Hey mwuehle,

    Thank you for the inquiry.

    To adjust the size of the featured image or display the full-size version, you can add this code to the functions.php file.

    add_action('after_setup_theme', function() {
        global $avia_config;
        $avia_config['image_size'] = 'full';
    }, 10, 1);

    Best regards,


    Hi Ismael,
    I added to functions.php in the enfold-child as suggested, but it doesn’t work.

    Take a look at this post as an example:

    The post image is 871 x 975 pixels in the original. It is cropped at the top and bottom. I want it to be displayed completely and also not so big.

    Do you have an idea how to do that?

    Best regards, Michael



    Thank you for the update.

    If the modification above is not working, please override the themes/enfold/includes/loop-index.php template file and look for this code around line 93.

    $size = strpos( $blog_style, 'big' ) ? ( ( strpos( $current_post['post_layout'], 'sidebar' ) !== false ) ? 'entry_with_sidebar' : 'entry_without_sidebar' ) : 'square';

    Replace the code with:

    $size = strpos( $blog_style, 'big' ) ? ( ( strpos( $current_post['post_layout'], 'sidebar' ) !== false ) ? 'full' : 'full' ) : 'square';

    Best regards,


    The image will now no longer be cut off. So that works. Thanks a lot!

    In the mobile browser the image is also displayed as I imagine it. But in desktop the blog images look way too big.
    I would like to limit to a maximum resolution, for example 300 x 300 pixel.

    Is that possible somehow?


    If you want your single post images to have a max-width of 300px and be centered try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    #top.single-post .fullsize .template-blog .big-preview img {
        max-width: 300px;
        margin: auto;

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    After applying the css, please clear your browser cache and check.

    Best regards,


    Thank you so much, that’s exactly how I wanted it!


    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Größe des Beitragsbilds’ is closed to new replies.