Php code not working in wordpress?

Good day, please take a look if you have time, do on wp
<?php if(is_home()) :?>
<div class="banner-top">
 <div class="container">
 <?php else : ?>
 <div class="inner-banner">
 <div class="container">
 <div class="banner-top inner-head">
 <?php endif; ?>


all the time connect 3 diva, even at home, and have 2 at home...I do not understand what is wrong?
March 19th 20 at 08:37
1 answer
March 19th 20 at 08:39
Solution
Apparently the fact that the page is static and it is necessary is_front_page()
thank you)) - Fatima.Ro commented on March 19th 20 at 08:42

Find more questions by tags WordPress