• Resolved ImageAbe

    (@abu117)


    When I either add a featured image or add to the gallery or add under the directions, the image always appears twice. First with the print option and then directly below it again. I have tried all the above mage settings one at a time.Either there is no image or as I said, it appears twice. Any way around this please?

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ImageGora Tech

    (@goratech)

    Hello @abu117, Cooked works with shortcodes. If you click edit on any of your recipes, you will see the “Recipe Template” field which contains many shortcodes that make up the recipe page.

    Depending on the theme that you are using, the featured image can be handled differently. Since your theme is already displaying the featured image, what you can do is simply delete the “[cooked-image]” shortcode in the Recipe Template field.

    Then click the “Save as Default” button right on top of the field to open up the popover, then click “Save as Default” again and also click “Apply to All“. This will apply the new template, without the [cooked-image] shortcode to all of your recipes.

    Hope this helps and let me know if you have any questions.

    Plugin Author ImageGora Tech

    (@goratech)

    Hey @abu117 let me know if that worked for you. Otherwise I’m going to mark this thread as resolved.

    Thread Starter ImageAbe

    (@abu117)

    sorry, I thought I had replied to this. Yes, it worked great, but I did have another question. When adding ingredients, there is a drop- down of measurements. Is it possible to add more options to that list? Thanks for your help πŸ™‚

    Plugin Author ImageGora Tech

    (@goratech)

    Hey @abu117 I’m glad it worked. And yea you can definitely customize it but it requires a little bit of code. For example if you wanted to add Deciliter or Centiliter you could use something like this:

    function custom_cooked_measurements( $measurements ) {
    // Add "Deciliter"
    $measurements['dl'] = array(
    'singular_abbr' => esc_html__( 'dl', 'cooked' ),
    'plural_abbr' => esc_html__( 'dl', 'cooked' ),
    'singular' => esc_html__('deciliter','cooked'),
    'plural' => esc_html__('deciliters','cooked'),
    );

    // Add "Centiliter"
    $measurements['cl'] = array(
    'singular_abbr' => esc_html__( 'cl', 'cooked' ),
    'plural_abbr' => esc_html__( 'cl', 'cooked' ),
    'singular' => esc_html__('centiliter','cooked'),
    'plural' => esc_html__('centiliters','cooked'),
    );

    // Return customized array
    return $measurements;
    }

    I know this is a little technical and if you need help getting it done I can help you do it if you set me up with a temporary login. If you do decide to give me access you can email me at support[at]cooked.pro with any sensitive information.

    Thread Starter ImageAbe

    (@abu117)

    Sent you an email.

    Abe

    Plugin Author ImageGora Tech

    (@goratech)

    @abu117 I received your email and sorry about that, I just noticed that I had missed a line:

    add_filter( 'cooked_measurements', 'custom_cooked_measurements', 10, 1 );
    Thread Starter ImageAbe

    (@abu117)

    Thanks – that’s perfect. Thank you so much. I am marking this as resolved. Great support πŸ™‚

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.