Title: Margin causing style conflicts
Last modified: March 3, 2021

---

# Margin causing style conflicts

 *  [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/margin-causing-style-conflicts/)
 * The left and right margins are messing with layout when using the block editor.
 * A lot of block editor-based themes use auto margins for paragraphs, so the 0 
   margin from YARPP is causing the related posts to not be center aligned.
    [https://share.getcloudapp.com/KouZkL57](https://share.getcloudapp.com/KouZkL57)
 * Is there a need for
 *     ```
       .yarpp-related {
           margin: 1em 0;
       }
       ```
   
 * at all anymore? Couldn’t you allow the plugin to inherit the paragraph and ordered
   list styles from the theme?
    -  This topic was modified 5 years, 3 months ago by [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/margin-causing-style-conflicts/#post-14130525)
 * Additionally, it doesn’t appear possible to dequeue the related.css stylesheet.
 *     ```
       // Dequeue YARP CSS Style Sheet
   
       function crunchify_dequeue_header_styles() {
         wp_dequeue_style( 'yarppRelatedCss' );
       }
       add_action( 'wp_enqueue_scripts', 'crunchify_dequeue_header_styles', 99 );
       ```
   
 * since the [stylesheet is enqueued during `the_content`](https://github.com/wp-plugins/yet-another-related-posts-plugin/blob/d5053e706c7aff9dc55c0ce5ea33a1e3899b1414/classes/YARPP_Core.php#L1044)
 *  Plugin Support [Michael Nelson](https://wordpress.org/support/users/mnelson4/)
 * (@mnelson4)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/margin-causing-style-conflicts/#post-14157724)
 * Hi [@helgatheviking](https://wordpress.org/support/users/helgatheviking/) thanks
   for sharing your findings.
    We’ll look into whether that CSS is still useful 
   or not. It was added ages ago (by the original maintainer I think) and so it’s
   a bit of a mystery what it would break if it were removed… Which theme(s) have
   you tried it on?
 * Would you mind creating a separate issue for dequeuing YARPP’s related stylesheet?
 *  Thread Starter [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/margin-causing-style-conflicts/#post-14157895)
 * Thanks Michael. I was using the Go theme.
 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/margin-causing-style-conflicts/#post-14338618)
 * **_Unable to dequeue related.css stylesheet_** tracked in:
    [https://wordpress.org/support/topic/unable-to-dequeue-related-css-stylesheet/](https://wordpress.org/support/topic/unable-to-dequeue-related-css-stylesheet/)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Margin causing style conflicts’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-related-posts-plugin/assets/icon-256x256.png?
   rev=2549977)
 * [YARPP - Yet Another Related Posts Plugin](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [YARPP](https://wordpress.org/support/users/jeffparker/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/margin-causing-style-conflicts/#post-14338618)
 * Status: not resolved