• abdorefky

    (@abdorefky)


    Hello,
    my blog : wwww.abdorefky.com

    i want to decrease the size of the posts headers on the main page so the photos don’t look that big .

    but only on the main menu .

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Please try asking for assistance in the theme’s dedicated forum: https://www.ads-software.com/support/theme/ryu

    In the meantime, do not edit the theme itself. First create a child theme for your changes. Or install a custom CSS plugin.

    ThemeSumo

    (@themesumo)

    You can use a Child Theme to make modifications to your theme.

    Add this to your functions.php file:

    function custom_image_sizes() {
    	add_image_size('home-images', 768, 300, true);
    }
    add_action( 'after_setup_theme', 'custom_image_sizes' );

    You can then make a duplicate copy of the themes’ content.php file and place it in your Child Theme folder, make the following code change to it.

    FIND:

    <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'ryu' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="ryu-featured-thumbnail">
        <?php the_post_thumbnail( 'ryu-featured-thumbnail' ); ?>
    </a>

    REPLACE IT WITH:

    <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'ryu' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="ryu-featured-thumbnail">
        <?php if (!is_home()) { ?>
            <?php the_post_thumbnail( 'ryu-featured-thumbnail' ); ?>
        <?php } else { ?>
            <?php the_post_thumbnail( 'home-images' ); ?>
        <?php } ?>
    </a>

    You’ll also want to Regenerate Your Thumbnails to ensure the new image size is being used on the homepage.

    Hope this helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to decrease homepage size’ is closed to new replies.