I'm using this code with success on some wordpress installation, but with my new theme it doesn't work.
<?php echo is_home() ? '<h1>' : '<h2>'; ?>
<a href="<?php echo home_url(); ?>/">
<?php bloginfo('name'); ?>
</a>
<?php echo is_home() ? '</h1>' : '</h2>'; ?>
On this website I have a static page as front page which might be the reason of it not working.
I'm not so good with PHP so any help would be appreciated. I guess if i call the page name instead of home it might work but not sure about the syntax
Thanks!