Title tag on home using front-page template not showing

Question

Currently in header I have the following:

<title>
    <?php wp_title(' | ', true, 'right'); ?>
    <?php bloginfo('name'); ?>
</title>

I tried adding if statement like the following below that did not work it displayed as the following: Roots Restaurant Roots Restaurant

<?php if(is_front_page()) {bloginfo('name');}?>

It should display as Home | Roots Restaurant

0
, Rejaur Rahman 1 year 2020-07-13T09:10:32-05:00 0 Answers 59 views 0

Leave an answer

Browse
Browse