Hello,
I use the Related Entries element via the shortcode [rpost] and the following code added to functions.php:
function related_posts_shortcode( $attr ) {
ob_start();
get_template_part( ‘includes/related-posts’ );
return ob_get_clean();
}
add_shortcode( ‘rpost’, ‘related_posts_shortcode’ );
Everything is fine, except for paddings and margins. On large and medium screens, there is an unexpected padding on the right of the Related Entries element, which I would like to set to 0. And I also would like to change (decrease) the bottom padding and margin of this element for all screen sizes. Please see the link.
Regards,
Marina
Hey Marina,
Thank you for the link to your site, Please try this code in the General Styling ▸ Quick CSS field or in the WordPress ▸ Customize ▸ Additional CSS field:
#main .avia_codeblock>.related_posts {
padding: 0;
margin: 0;
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Hello Mike,
The code does not have any effect.
Regards,
Marina
Thank you very much, Mike! Now everything works )).
Best regards,
Marina
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike