• In my front page, the blog post images were appearing in different sizes.
    To make them appear in a uniform size,

    <?php
    if ( is_home() ){
        print "<style type='text/css'>\n img{width: 200px;
    height: 200px;}\n</style>";
    }
    ?>

    I inserted the above code in header.php

    The problem i am facing is that my logo size is also now reduced to the above mentioned size (200*200 px)
    I want to increase my logo size.

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you have recently changed themes, I would suggest in regenerating your thumbnails, this should simply regenerate all of your featured images to be of the same size, as defined by the theme you currently have active.

    Force Regenerate Thumbnails

    The code you have added to your site is applying a static width of 200px to every single image on your homepage, you need to remove this code.

    If you wish for me to take a closer look, then please add a link to your site in your reply and I will provide you with the correct code to sort out your homepage images.

    Hope this helps.

    Thread Starter serialspot

    (@serialspot)

    Hi serialspot,

    you could add this CSS code instead – this won’t affect your logo:

    .anons-thumbnail { max-width: 200px; }

    Please keep in mind that you shouldn’t modify the core files of your WordPress theme because these changes will be lost after theme updates. Instead you could make use of plugins like Simple Custom CSS to add custom CSS code to your website.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Image size’ is closed to new replies.