WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Pro
[resolved] No able to assign a Button Image (7 posts)

  1. novakpeter
    Member
    Posted 2 years ago #

    In some themes it is not possible to assign a Button Image. There is not a "make this picture featured" (not sure how exactly it is) in media gallery.

    http://wordpress.org/extend/plugins/shortcodes-pro/

  2. novakpeter
    Member
    Posted 2 years ago #

    OK, I tried to figure it out. It is easy to solve. Just add to your functions.php in theme folder this:

    add_theme_support('post-thumbnails');

  3. Matt
    Member
    Plugin Author

    Posted 2 years ago #

    Hi novakpeter,

    Thanks for sharing your solution,

    Kind Regards!

  4. josephine6608
    Member
    Posted 1 year ago #

    I've tried this solution but have not had any success in assigning an image. Is there anything else I can try?

    Thanks!

  5. Matt
    Member
    Plugin Author

    Posted 1 year ago #

    Hi josephine6608,

    Can't think other than add_theme_support('post-thumbnails');... try this:

    add_action( 'after_setup_theme', 'yourprefix_add_thumbnail_support', 9999 );
    
    function yourprefix_add_thumbnail_support() {
    	if ( function_exists( 'add_theme_support' ) )
    	add_theme_support( 'post-thumbnails' );
    }
  6. josephine6608
    Member
    Posted 1 year ago #

    Hi Matt,

    That seems to have worked like a charm! Thanks so much!

  7. Matt
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the feedback josephine6608, glad to hear it's working.

    Kind Regards!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic