• Resolved tashword

    (@tashword)


    I have customised the template and that’s all good.

    But can I have two templates available? For example one for food recipes and one for non-food recipes so that they are clearly different to a visitor. If so, how do I set up and save the second template (without losing the first one!)?

    I’m happy for them to have mostly the same settings. Maybe something like a red background for food and green for not food but otherwise the same layout, fonts, etc.

Viewing 1 replies (of 1 total)
  • Plugin Support jarnovos

    (@jarnovos)

    Hi @tashword,

    I understand what you’d like to achieve, although the plugin currently only allows for one template to be used; and this template will then be applied ‘globally’.

    If it concerns some minor (styling) changes, there’s another approach that you could consider, which is to apply styles based on the Category that is assigned to the Post.

    So, let’s say I have two posts with recipes. I assign one to a “Desserts” category, and the other one to a “Non-food” category.

    This would allow you to target CSS rules based on whether the post is included in a certain category. The below CSS changes the background color of the recipe to grey, and will only apply this to posts in the “Desserts” category.

    .category-desserts #zrdn-recipe-container {
        background: #f0f0f0;
    }

    Hope this helps! Kind regards, Jarno

Viewing 1 replies (of 1 total)
  • The topic ‘multiple templates?’ is closed to new replies.