• Resolved losrack

    (@carlos-jaramillo)


    Hi,

    I would like to hook content right after the site-content markup.

    I tried this on my child functions but since it is inside the two-columns lay-out it is not suiting my need to have a new “no 2 column section”.

    /* test */
    function my_added_content ( $content ) {
        if ( is_page() ) {
            return $content . '<p>Content here</p>';
        }
    }
    add_filter( 'the_content', 'my_added_content');

    It works but how Can I place it out, after the site-content?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘hook content to site-content:after’ is closed to new replies.