ahaaa 😀
it’s success, I use CSS.
Here the screenshot
the code i use on single.php :
<!-- post section -->
<section class="post-section all-round grid">
<div class="content_wrapper">
<!-- YOUR CONTENT -->
</div>
</section>
<!-- end .post-section -->
<!-- comment section -->
<section class="comment-section all-round grid">
<?php if ( comments_open() || get_comments_number() ) : ?>
<?php comments_template(); ?>
<?php endif; ?>
</section>
<!-- end .comment-section -->
<?php endwhile; ?>
<?php else: ?>
CSS code :
/* SECTION TO SEPARATE POST AND COMMENT */
.post-section, .comment-section {
background-color: white;
width: 900px;
margin:20px auto;
}
the schema :
- LOOP
- < Post >
- < Comment Section >
- END LOOP
Related Posts:
- Nested comments ignored for max per page in wordpress
- Custom Comments – Parent / Nested Reply
- Why is styling comments so complex?
- Comment form not display properly?
- How to Auto Approve Comments on a Specific Page?
- comment_form() generates the wrong action url
- Customize comment list markup
- how to pull wordpress post comments to a external page
- Remove “a href” from wp_list_comments()
- How to call wp_list_comments() with callback outside the loop
- How to get comment meta values by post ID
- Compact pingback list with favicons
- How to change i18n/l10n of #reply-title? (Old title: Comment reply link not working)
- How to remove comment link title attribute?
- Comment entry screen shows even though “Allow Comments” is unchecked
- Jetpack Comments with fall-back
- WP_Comment_Query – Get comments and answers separately
- Trackbacks not displaying
- Nested comments in WordPress theme
- Comment status shows ‘closed’ in db, but it shows ‘open’ when i echo it
- Difference between “comment_form_default_fields” AND “comment_form_fields”
- How to enable Disqus comments in a WordPress theme I’m creating from scratch? [closed]
- How to add custom class to get_avatar()
- Same comments on all posts
- WordPress Comment spam issue
- WordPress comments title
- Ajax Comment Upvotes – Votes don’t always register
- Modify comments_popup_link output
- Woocommerce Theme Reviews / Comments
- child comments not displaying as nested
- How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?
- wp_update_comment not working
- Recent posts with comment count in “Sidebar” template [closed]
- Is there a Function so that the author of the comment can delete his own comment?
- The proper way to include/require PHP files in WordPress
- Get ‘page’ number with infinite scroll
- How to wrap the widget content with a div or get the widget title outside?
- Where i should not use if (!defined(‘ABSPATH’)) { exit; }?
- Hide 2022 Parent Theme Templates / Parts
- What flex-width/height does?
- Should we localize custom-made themes / plugins?
- Installing WordPress Theme Unit Data
- How to tell if the user is an admin?
- Adding WordPress colorpicker in widget settings
- What is wrong with this code I have to make a blockquote shortcode
- Removing title tags from each page
- How to attach different React Components to different Dom Roots using the new WP wordpress/scripts webpack/babel
- Remove Cookies From WordPress Core
- Is it necessary to prefix every css class in a theme framework?
- Warning/Error in Admin Panel while developing theme
- How do I get the next page of posts link?
- Where can I access my custom page template?
- How to display posts in hyperlink with nested slugs?
- Check if tag, category or author on archive.php
- Editing Footer Information
- Developing WordPress Theme using CSS framework like Bootstrap
- WordPress empty Nav Menu error
- How to add a button which saves the post then executes a function
- Disable dashboard drag&drop
- nothing happen in search form
- Catagories to the list of the titles in that catagory to the content of the post [closed]
- How to customize output of plugin
- Override customizer values on a per-menu base
- Theme Inspector “X-Ray”
- Can I get the ID of an inserted / linked image?
- WordPress Theme Creation [closed]
- do_shortcode() in twentyeleven theme
- Cherry framework – Overriding function in template-general.php
- pagination for a custom loop with multiple post types
- Making a child theme for “Airi”
- How to get category lists by name or slug
- using custom page
- Preview returns 404 in theme [closed]
- How to get DB options format without saving? [closed]
- How to add custom page elements to the WYSIWYG editor?
- Theme development: menu links a tabbed page with page jumps
- Disable redirect canonical
- Show only pages you are author of
- how to unlocalize theme/plugin?
- Best way to declare product variables in woocommerce theme development?
- Adding a button to wp/aution plugin
- WordPress and Semantic UI
- Displaying front side empty with one file attached problem
- Can you edit a theme in a text editor?
- Where i must put hooks in overridable functions?
- my ajax wont sent the data, please correct my code
- How to fix a conflict cause by my theme with Woocommerce and/or Gravity Forms?
- How to hook into wordpress upgrade procedure for a custom theme
- Second page of archive is empty
- Missing hashtag with theme customizer header color
- Fail to install theme on development copy of WordPress on Webmatrix
- Category page with posts from 2 different childcategories
- How to save the Additional CSS in a CSS file and enqueue it
- Elementor Pro and Astra have different breakpoints – how to salvage?
- How to split the site’s layout without damaging this layout? [closed]
- How To add li class and a class wp_nav_menu() with bootstrap 5 navbar?
- Permalink Setting Changes From Post Name to Default After Changing The Page Name
- Not Able to Access Terms Under Custom Taxonomy Archive
- Full site editing templates folder vs block-templates
- Why is my Toggle field not showing in Gutenberg?