Support » Theme: Twenty Seventeen » hook content to site-content:after

  • Resolved losrack



    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?


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

Viewing 3 replies - 1 through 3 (of 3 total)
  • losrack


    … or do I have to register a new section?



    I was perhaps going the wrong way.

    I finally went a different way, registering new stuff before the default widgets.

    I want to increase the font size of the headings of the blog post and also want to increase the width of the post with right sidebar.

    [ Signature deleted ]

    • This reply was modified 11 months, 3 weeks ago by  narendra1977.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘hook content to site-content:after’ is closed to new replies.