How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support How to add custom content after a review

  • This topic has 2 replies, 2 voices, and was last updated 1 year ago by pnp.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14660
    pnp
    Participant

    Hello,

    How can I add content after a review using functions.php? I tried using the poka_after_main hook in the documentation, but it adds it to all pages.

    `function my_override_function (){
    echo ‘

    Custom Content

    ‘ ;
    }
    add_action ( ‘poka_after_main’ , ‘my_override_function’ , 3 , 0 );`

    Thanks!

    #14669
    admin
    Keymaster

    Hi,

    if you want your function to work on Review pages you can try this code:

    `function my_override_function (){
    if ( is_singular( ‘affiliates’ ) ) {
    echo ‘My content’;
    }
    }
    add_action ( ‘poka_after_main’ , ‘my_override_function’ , 3 , 0 );`

    Is this what you were looking for?

    #14670
    pnp
    Participant

    Yes, thank you!

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