• dereksmithweb

    (@dereksmithweb)


    I am wondering how to include a new template in the AMP plugin for our 404 pages.

    I was thinking of checking an IF statement using is_404 and returning the correct custom template, but I am not really sure where I should place this.

    Please advise.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter dereksmithweb

    (@dereksmithweb)

    Im not asking this – sorry if you got me wrong.
    Im asking where does rendering occurs in order to go there and set an IF statement like
    if the request includes a 404 page, show up the new template, using is_404() , and then requiring 404-template-amp.php

    James Osborne

    (@jamesosborne)

    @dereksmithweb Apologies for the delay. @swissspidy might be able to help you out with this.

    Thread Starter dereksmithweb

    (@dereksmithweb)

    No worries.
    Great. Will be waiting for @swissspidy reply.

Viewing 3 replies - 16 through 18 (of 18 total)

The topic ‘is_404’ is closed to new replies.