• Resolved damtox

    (@damtox)


    Hi,
    Can you create an appearance in files of type single-post.php ??
    Is it only in visual appearance?

    • This topic was modified 4 years, 5 months ago by damtox.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Brecht

    (@brechtvds)

    What are you trying to achieve exactly? Can you give me an example?

    Thread Starter damtox

    (@damtox)

    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.

    Plugin Author Brecht

    (@brechtvds)

    Thread Starter damtox

    (@damtox)

    Hi,
    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″] ??

    Plugin Author Brecht

    (@brechtvds)

    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.

    Thread Starter damtox

    (@damtox)

    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?

    Plugin Author Brecht

    (@brechtvds)

    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.

    Thread Starter damtox

    (@damtox)

    I need to put tags under the picture (which are links).

    • This reply was modified 4 years, 5 months ago by damtox.
    Plugin Author Brecht

    (@brechtvds)

    You can use PHP to create a shortcode to output those tags and then just put the shortcode in the HTML recipe template.

    Thread Starter damtox

    (@damtox)

    Thanks. So I did…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘single-post.php ??’ is closed to new replies.