adding custom template

  • This topic has 2 replies, 2 voices, and was last updated 6 years ago by Koert Tomasini.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #458859
    Koert Tomasini
    Guest

    Hi.

    Is there any information on adding a custom template to Motopress besides the rather short info in the developers docs?
    Maybe I’m missing something but which file do I edit to have my template show up in the template chooser? Where do I put my custom template? What information is necessary in a template file to have it function properly? Is it possible to use a previously published post as a template?

    Some more information would be really apreciated!

    Thank you!

    Regards Koert

    #459964
    J. Davis
    Keymaster

    Hi Koert,

    As afr as I understand you mean this doc.
    Then you can add the code to functions.php file of your Child Theme or create a plugin for it.
    You should add full content(shortcodes) of any page you want to create a template from instead of ‘paste your shortcodes here’ (make sure single quotation marks are not removed) in the code. You can see that content when you close Visual Builder.

    Best regards,
    John

    #459979
    Koert Tomasini
    Guest

    Yes, that was the step I was missing.
    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.