• Resolved blowk

    (@krisprovoost)


    Hello

    I’m trying to make a custom template using the functions.php file.
    I’ve added all the things I want, but when I added:

    <?php
    	$recipe_changer = new WPURP_Template_Recipe_Servings_Changer();
    	echo $recipe_changer->output( $recipe );
    ?>

    The value is showed, but when I press to change the servings, the values of the ingredients, doesn’t change.

    I added this code to show the ingredients.

    <?php
    	$ingredient_list = new WPURP_Template_Recipe_Ingredients();
    	echo $ingredient_list->output( $recipe );
    ?>

    Do I need to add somethins else in order to work with the servings changer?

    https://wordpress.org/plugins/wp-ultimate-recipe/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Brecht

    (@brechtvds)

    Is the entire recipe surrounding by a div with the wpurp-container class like mentioned on this page?

    Thread Starter blowk

    (@krisprovoost)

    Thanks Brecht!

    There was a typo. Now it’s working.

    Is there a way to de-activated the wpurp-public-forced.css?
    It’s resetting the previous lay-out of the main template.

    Plugin Author Brecht

    (@brechtvds)

    You can disable the “Use base CSS” setting on the Recipes > Settings > Recipe Template > Advanced page.

    Thread Starter blowk

    (@krisprovoost)

    Wow, thanks.

    Hello Blowk, hello Brecht,

    i have the same problem, the the values of the ingredients doesn’t change on click. Can you please tell me what you’ve done to fix it?

    Thank you very much,
    Sven

    Plugin Author Brecht

    (@brechtvds)

    Hi Sven,

    Could you open your own topic? That’s considered best practice on the support forums.
    It would be helpful if you could get me a link to a recipe on your website as well.

    Brecht

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WPURP_Template_Recipe_Servings_Changer – in custom template not working’ is closed to new replies.