There is a basement site, copied all its code from the file footer.php. But for some reason he got up incorrectly, what could be the problem? Thank you in advance for the answers.

Archive with links - https://yadi.sk/d/on7tE8gIxy7Gf

PS Reputation is not enough to insert links. And the code is not inserted properly.

  • It is possible in more detail as where copied? For what? What do you want to get as a result? Why copy the code from footer.php if you just connect it in the new page template <?php get_footer(); ?> <?php get_footer(); ?> - eugene_v 1:51

1 answer 1

glav.php - if this is the template of the future main page, then it should be called page-glav.php (standard page.php template). It connects

  <?php /* Template Name: Home Page */ get_header(); ?> <section> <div class="container"> <div class="row"> <div class="col-sm-12" style="margin-bottom:25px;"> <a href="http://tiarsekj.bget.ru/shop/" class="button13">Общая категория</a> </div> </div> </div> <div class="container"> <div class="row " > <div class="col-xs-6 col-md-6" style="margin-left: 50px;margin-right: -120px;" id="cas"> <a href="http://tiarsekj.bget.ru/product-category/casio/" class="ch"> <div id="casio"> <p><br><br><br><br><br><br><br><br><br><br></p> </div> </a> </div> <div class=" col-xs-6 col-md-6" > <a href="http://tiarsekj.bget.ru/product-category/orient/" class="ch"> <div id="orient"> <p><br><br><br><br><br><br><br><br><br><br></p> </div> </a> </div> </div> </div> </section> <?php get_footer(); ?> 
  • Once again you are helping me out, thank you very much) I just don’t understand, but what difference is the name of the main page file? - tweeker
  • Well, there are certain rules. developer.wordpress.org/themes/basics/template-files page-{slug}.php page (s) -about.php). - eugene_v
  • hmm, you will need to do read, and then blindly consider doing everything, thank you again) - tweeker