Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22940
    finnn
    Member

    Hello,

    I created a Child Theme and I want to place a Text like “News” between Featured Slider and first Post below. I have taken a look into contents.php but there are many if requests and I have to admit that I’m not that familiar with PHP. Is it possible to place a Text at that position?

    thanks in advance

    Finn

    #22990
    Sakin
    Keymaster

    @finnn: Just create empty functions.php file in your child theme and add the following code in that functions.php file.

    <?php
    function catchbox_child_hometext() {
    	if ( is_home() ) {
    		echo '<header class="page-header"><h1 class="page-title">News</h1></header>';
    	}
    }
    add_action( 'catchbox_content', 'catchbox_child_hometext', 15 );
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Custom Text between Slider and first Post’ is closed to new replies.