WordPress sidebar not align with content
它让我发疯,因为我不是代码高手,使用模板//’submate//’我试图在 children 主题优势上添加右侧边栏
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | <?php /** * This template displays full width pages with a page title. * * @package vantage * @since vantage 1.0 * @license GPL 2.0 * * Template Name: submate */ get_header(); ?> <?php <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( ‘content’, ‘page’ ); ?> <?php endwhile; // end of the loop. ?> <?php get_footer(); ?> | 
它的链接是; http://www.seasonalharvest.co.uk/recipes/february/
非常感谢您的帮助:)
您的文章的 html 结构非常糟糕。您已将 
无论如何,您都可以将这个小片段添加到您的 
| 1 2 3 4 | article[class*="post"] { /* only post articles */ float: left; width: 65%; } | 
编辑
仅适用于特定页面:
| 1 2 3 4 | .page–id–231 article[class*="post"] { /* only post articles */ float: left; width: 65%; } | 
试试这个…
| 1 2 3 4 5 6 | <style type="text/css"> article#post-231 { float: left; width: 65%; } </style> | 
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/268532.html
