Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @mitdrissia,
    Thank you for contacting us, You can try removing the comment that defines the template name, and the functions to get header and footer. Then paste the rest of the code in the snippet. Check the ‘ Shortcode’ and ‘PHP Code’ on the right side and click save.

    Please remember post snippets do not require the opening PHP tags at the start of snippets, you might have to modify your template code that way.

    You can try adding your snippet to a page and check if it works for you or not.

    Thread Starter mitdrissia

    (@mitdrissia)

    Hi, it would be great if you had some code.
    Because i removed the get header and get footer part but when i add the snippet i get only a sidebar and an empty site with the name of the snippet. Nothing more.
    please show me how to rewrite the php part.
    Much appreciated

    Hi @mitdrissia,

    That template can only be tried on your setup, as we do not have that theme we cannot simply try that template on our staging. Also, our technical team needs some more info from your end please open a support ticket at our website so our technical team can assist you further.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘php template as php snippet’ is closed to new replies.