Custom template documentation
-
Hi again!
I’m struggling with custom template.
There are a few questions I can’t find info neither on the website documentation nor this support forum.he thing is I’ve created custom amp template in “amp” folder in my current theme.
Placed there some files from old default template, such as html-start.php, html-end.php, header-bar.php etc.So I’ve got page.php and single.php too. I’ve added custom singular templates with the hook
amp_post_template_file
, no the questions are:1) How to set different template for pages with different templates.
Default WP descriptionTemplate Name: Homepage Template
is not working.2) How to customize JS files list and add an
amp-carousel
to the template?
I use custom html in the theme so there are carousels for certain templates with ACF.3) How to get amp-img from simple get_post_thumbnail() and etc.
Thanks.
- The topic ‘Custom template documentation’ is closed to new replies.