How to add page title with Simple PHP block?

Permalink 1 user found helpful
I've only found hint for adding the page title to the theme, but I don't want modify the theme.

Willi

 
Jack replied on at Permalink Best Answer Reply
This is old but came up in the search so I guess I answer for anyone else who might find this.

I've just used a global scrap book entry for the site's title
$block = Block::getByName('My_Site_Name');
         if( $block && $block->bID ) $block->display();
         else echo SITE;
         $block = Block::getByName('My_Site_Tagline');
         if( $block && $block->bID ) $block->display();

Then log in > dashboard > scrapbook > Global > create a new block called 'My_Site_Name' and so on.