• Resolved Luis Alejandre

    (@luisalejandrewp)


    The list of features of this plugin says “choose between different templates to determine how your recipes should look like or create your own template yourself
    What is the easiest way to create our own template? I couldn´t find any documentation for it.
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kemory Grubb

    (@w33zy)

    Hello @luisalejandrewp
    Thanks for your interest in the plugin.

    As things are right now, there is no documentation for the custom templates feature of the plugin. I should also mention that this is a feature aimed at developers, as it involves writing code, especially CSS.

    If you interested on how it works, you can take a look at this example of this “blank” template https://gitlab.com/w33zy/rpr_blank

    To use it you would create a folder named “recipepress” in your current theme’s root folder, then copy the “rpr_blank” into it. Then you would select the new “Rpr Blank” template from the plugin settings.

    Thread Starter Luis Alejandre

    (@luisalejandrewp)

    Thank you very much for your quick reply and for providing that blank example template, I will definitely give it a try!

    Thread Starter Luis Alejandre

    (@luisalejandrewp)

    Hi again, @w33zy

    I created the “recipepress” folder in my child theme’s root folder and copied a fresh example template to it, based on your blank template. Then the first thing I noticed is that I couldn´t get my new template screenshot to be shown under “Recipe Templates“.

    By inspecting the html code on the Appearance settings page of your plugin I noticed it was trying to retreive the screenshot image from a “recipepress” folder of the parent theme and, therefore, could not find it because it is in the child theme.

    Then I took a look at the plugin code and found that the function
    add_layout_to_list( $dir_name ) in the class-layouts.php file uses get_template_directory_uri().

    Shouldn´t it be get_stylesheet_directory_uri() instead?

    Thanks again, Kemory.

    Plugin Author Kemory Grubb

    (@w33zy)

    Hello @luisalejandrewp

    You are correct. It has just occurred to me that in all my testing and development of this feature I have never used a child-theme before.

    I have updated that line to use get_stylesheet_directory_uri() and I’ve also updated the “rpr_blank” GitLab repo

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Templates’ is closed to new replies.