wordpress - Changes to page.php and single.php not applying -
i'm having quite weird issue wordpress site. building theme scratch , i'm trying make change containers on blog page (page.php , single.php). weirdly enough, have made no major changes code other add wrapper, changes aren't showing up.
i've made many themes without issue i'm unsure what's going wrong time. have set blog page posts page in settings can't understand why template won't update. code have below, , standard wordpress code exception of 'grid wrapper'
, attempting remove sidebar shows.
i have done quite bit of research on see problem be, sadly post similar in 2014 no answer.
<div class="container main-content"> <div class="grid wrapper"> <section class="the-content"> <main> <h1><?php the_title(); ?></h1> <?php while ( have_posts() ): the_post(); ?> <?php get_template_part('template-parts/content', 'page'); ?> <?php endwhile; // end of loop. ?> </main> </section> </div> </div>
long story short, content shows fine. can't edit wrapper contains content.
i change parameters in get_template_part()
this how supposed used: understanding get_template_part
so if have blank wordpress file structure, i'm not sure if have template-parts sure. can have them if intentionally made them.
Comments
Post a Comment