Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1353362
    Filadelfia
    Participant

    So I found part of the solution here: https://community.theme.co/forums/topic/back-botton-for-a-single-post-with-functions-php/

    but I would like to have it at the top of the post. Top left corner, whats the selector for “add_action” needed for having it at the top?

    #1353421
    Lely
    Moderator

    Hello There,

    Thanks for posting in.
    We can use this:x_after_the_content_begin
    Please use this:

    add_action( 'x_after_the_content_begin', 'add_to_single_posts' );
    function add_to_single_posts() {
      if ( is_single() ) {
        echo "<a href='http://your.link/to/blog' class='btn'>Back</a>"; 
        }
    }

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1353362 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>