[HELP] Featured Image on my blog (3 posts)

  1. acunmeswew
    Posted 3 years ago #

    Can anyone share how to create featured image . so that i can modify my featured image
    my featured image not display .
    my blog : http://acunmeswew.com

    please help me .

  2. potentweb
    Posted 3 years ago #

    Put this in your functions.php page

    if (function_exists('add_theme_support')) {
      add_image_size( 'post-header', 618, 400);

    And in your template

    if(has_post_thumbnail()) {
            $myThumb = get_the_post_thumbnail($id, 'post-header', array('class' => 'aligncenter'));
            echo $myThumb;
        } ?>
  3. acunmeswew
    Posted 3 years ago #

    I try that . buta my site became error

    Parse error: syntax error, unexpected '<' in /home/u761473910/public_html/wp-content/themes/averin/index.php on line 55

    in my theme already same as that , this is :

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic