• Resolved dave_udes

    (@dave_udes)


    Is it possible to reduce the size of the featured images and have more text (about 10 lines) shown in the posts that are on the main page?

    Thanks for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • – create a child theme.
    – create an empty functions.php file and place it in your child theme
    – in that file, copy the contents from here: https://pastebin.com/MkF4kpHt
    – change the values indicated there: 400 is the height of the home page images and 55 is the default excerpt value.
    – upload the child theme to your server and activate it
    – run a thumbnail regeneration plugin, like this one.

    Thread Starter dave_udes

    (@dave_udes)

    I think I made a huge mistake by adding it in the theme.

    I receive this message:
    Parse error: syntax error, unexpected end of file in /home/seminaires.01063/public_html/wp-content/themes/solon/functions.php on line 241

    What can I do to make my Solon template working again?

    Here is the code that I guess is at line 241:

    function solon_html5shiv() {
    echo ‘<!–[if lt IE 9]>’ . “\n”;
    echo ‘<script src=”‘ . esc_url( get_template_directory_uri() . ‘/js/html5shiv.js’ ) . ‘”></script>’ . “\n”;
    echo ‘<![endif]–>’ . “\n”;
    }
    add_action( ‘wp_head’, ‘solon_html5shiv’ );
    /**
    * Custom template tags for this theme.
    */
    require get_template_directory() . ‘/inc/template-tags.php’;

    /**
    * Custom functions that act independently of the theme templates.
    */
    require get_template_directory() . ‘/inc/extras.php’;

    /**
    * Customizer additions.
    */
    require get_template_directory() . ‘/inc/customizer.php’;

    /**
    * Load Jetpack compatibility file.

    Thread Starter dave_udes

    (@dave_udes)

    My website:

    That code was not meant for the main theme. I’m guessing you can no longer delete the code you’ve added.

    Do you have acces to your cPanel? You should acces it and delete the whole Solon folder and WordPress will revert back to Twenty Fourteen. After that you can simply install Solon again.

    Thread Starter dave_udes

    (@dave_udes)

    Perfect.
    I’m back online and will follow your steps from the CPanel.

    Thread Starter dave_udes

    (@dave_udes)

    It worked.
    Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Featured image size and text in posts main page’ is closed to new replies.