Support » Plugin: WP Recipe Maker » single-post.php ??
2 years, 7 months ago
Can you create an appearance in files of type single-post.php ??
Is it only in visual appearance?
What are you trying to achieve exactly? Can you give me an example?
I’m not doing anything yet … I want to know the possibilities of creating my own recipes. I would prefer to create a layout in HTML + PHP myself.
Sure, that’s possible: https://help.bootstrapped.ventures/article/84-create-your-own-template
I created the file:
/wprm-templates/recipe/xxx/xxx.css and xxx.html
To add php, I have to create xxx.php ??
xxx – same name?
How do you unregister all your css styles?
How do you remove all classes from HTML? (shortcode – cleared)
How to add a class to the tag: [wprm-recipe-name tag=”h1″] ??
Yes, you’d add xxx.php
You’d have to deregister the ‘wprm-public’ style, but I don’t recommend as it will break other functionality (like the recipe ratings) as well. Rather work around the styling we already include.
What classes are you referring to exactly?
The wprm-recipe-name shortcode already has a class that you can target. If you need extra classes, surround it with a <div> that has the class you need.
The plugin will not work as expected if you completely rebuild the template from scratch and remove all of our classes. Those are required for some of the functionality to work.
In which folder do I need to add the .php file for the .html file to work ??
Ok, I’ll leave your CSS, but I need to add some functions in the PHP file. How is this best returned as a child?
The same folder as the .html file. But it needs to be one or the other. You either have a .html file or a .php file.
But what PHP do you need? A lot of things can just be added to the functions.php file of your (child) theme instead.
I need to put tags under the picture (which are links).
You can use PHP to create a shortcode to output those tags and then just put the shortcode in the HTML recipe template.
Thanks. So I did…