Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to implement Google AMP in bbpress?

  • @shenll

    Participant

    Hi Everyone,
    How to implement google AMP for bbpress forum?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @netweb

    Keymaster

    I’ve only thought about it briefly, you’d need to write a set of custom templates so that everything passed the AMP specs https://www.ampproject.org/docs/guides/responsive_amp

    I know bbPress uses CSS’ !important in a few places so that we can force a few things for our “template compatibility” in supporting as many themes as we do, you can't use!important` with AMP: https://www.ampproject.org/docs/guides/responsive/style_pages

    Apart from that issue of the top of my head, I don’t see why it couldn’t be done 🙂

    @shibaa987

    Participant

    Well, this thread is pretty old and I have a way how you can enable AMP for bbpress pages.

    Before going to enable AMP support you need below things:
    – Code snippets plugin
    – AMP plugin

    Create a new code snippet and add the following code:
    add_action( ‘amp_init’, ‘amp_bbpress_init’ );
    function amp_bbpress_init() {
    add_post_type_support( ‘topic’, AMP_QUERY_VAR );
    }

    Read more @ How to Implement AMP on bbPress

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar