NEXT craftinamerica.org. Base setup for headless wordpress https://www.craftinamerica.org
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html <?php language_attributes(); ?>>
  3. <head>
  4. <!-- Google tag (gtag.js) -->
  5. <script async src="https://www.googletagmanager.com/gtag/js?id=AW-10996061145"></script>
  6. <script>
  7. window.dataLayer = window.dataLayer || [];
  8. function gtag(){dataLayer.push(arguments);}
  9. gtag('js', new Date());
  10. gtag('config', 'AW-10996061145');
  11. </script>
  12. <title><?php wp_title(); ?></title>
  13. <meta charset="<?php bloginfo( 'charset' ); ?>">
  14. <meta name="viewport" content="width=device-width, initial-scale=1">
  15. <link rel="prefetch" url="resource-url" />
  16. <?php wp_head(); ?>
  17. </head>
  18. <body>
  19. <div id="content" class="site-content" style="display:none">
  20. <?php
  21. if ( have_posts() ) {
  22. if ( is_home() && ! is_front_page() ) {
  23. echo '<h1>' . single_post_title( '', false ) . '</h1>';
  24. }
  25. while ( have_posts() ) {
  26. the_post();
  27. if ( is_singular() ) {
  28. the_title( '<h1>', '</h1>' );
  29. } else {
  30. the_title( '<h2><a href="' . esc_url( get_permalink() ) . '">', '</a></h2>' );
  31. }
  32. the_content();
  33. }
  34. }
  35. ?>
  36. </div>
  37. <div id="wp-app"></div>
  38. <?php wp_footer(); ?>
  39. </body>
  40. </html>