• Resolved dolphinsin

    (@dolphinsin)


    Hi everybody,

    I’m having some problems enabling featured image option in posts and pages. I have a function.php file with the following code:

    <?php

    function simple_theme_setup(){
    // Featured Image Support
    add_theme_support(‘post-thumbnail’);
    }
    add_action(‘after_theme_setup’,’simple_theme_setup’)

    I’m quite a newb, but I have spent the last 24 hours doing research on this, and experimenting, but nothing seems to work and I’ve come to a halt. Does anyone have any suggestions?

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @dolphinsin,
    the filename should be functions.php (add s at the end) and
    in the function you need add_theme_support(‘post-thumbnails’); (again add s).
    The action should be add_action(‘after_theme_setup’,’simple_theme_setup’) (you have theme and setup the wrong way around)
    Hope this helps

    • This reply was modified 6 years, 3 months ago by alichani.
    • This reply was modified 6 years, 3 months ago by alichani.
    • This reply was modified 6 years, 3 months ago by alichani.
    Thread Starter dolphinsin

    (@dolphinsin)

    Thank you so much for taking the time to help. It worked! You are a genius.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured image not showing’ is closed to new replies.