Pages Layout Alignment Different from Posts
-
Hi,
I’m experiencing a layout alignment issue between Pages and Posts on my WordPress site.
WordPress version: 6.9.4
Theme: GeneratePress with GP PremiumActive plugins:
- GP Premium
- Code Snippets
- List Category Posts
- LiteSpeed Cache
- Rank Math SEO
- WPS Hide Login
- Zoho Mail
I also added a custom snippet via GeneratePress Premium Elements (Hook Element):
// Change the priority from the default 10 to 20
add_filter( 'comment_form_defaults', function( $defaults ) {
$defaults['comment_notes_before'] = '
<div class="custom-comment-notes" style="margin-bottom:15px; font-size:14px; color:#aaa;">
<p>Gunakan email valid agar kamu mendapat notifikasi balasan.</p>
<p>Upload <a href="https://prnt.sc/" target="_blank" rel="nofollow noopener noreferrer" style="color:#0033ff;">screenshot</a> kamu di sini, lalu cantumkan link-nya di kolom komentar ya.</p>
</div>';
return $defaults;
}, 20 ); // Increased priorityScreenshots:
- First image: Pages layout
- Second image: Posts layout
Post example:
https://yourdomain.com/windows-11-aio/Page example:
https://yourdomain.com/donasi/The plugin/theme developer suggested this may be related to a WordPress filter rather than the theme itself.
Could this be caused by a template difference, hook conflict, or WordPress behavior between Pages and Posts?
Thank you.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.