How can we help?

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

Home Forums PokaTheme support Pages on front end without the H1, what’s the reason?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18301
    ran
    Participant

    I just instelled the new version on my new site, in my first “Page” I don’t see the H1, meaning the title.

    What could be the problem?

    #18306
    ran
    Participant

    anybody?

    #18307
    admin
    Keymaster

    Hello, this is normal behavior in PokaTheme v4, we decided that each page should just show its content.

    So if you want to show the page title, you have to enter it in the page content, too.

    If you want to automatically show up, you have to add the following PHP snippet, using a plugin like Code Snippets, or using your child theme.

    function poka_child_642a7ea3f18ba( $content ) {
    	if ( is_singular( array( 'page' ) ) ) {
    		$add_content  = '<h1>' . get_the_title() . '</h1>';
    		$add_content .= $content;
    		return $add_content;
    	} else {
    		return $content;
    	}
    }
    add_filter( 'the_content', 'poka_child_642a7ea3f18ba' );
    
    • This reply was modified 2 months ago by admin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.