How-to and Troubleshooting
5
Posts
2
Users
0
Reactions
1,123
Views
Mar 17, 2021 9:56 am
In order to insert the "Leave a Reply" header the following code has been inserted in the functions.php file:
add_action('wpdiscuz_comment_form_before', function() {
echo '<h2 style="max-width: 750px;margin: 0px auto;">' . __(' Leave a Reply', 'wpdiscuz') . '</h2>';
});
The problem is that the left margin varies depending on the device type and the screen width. e.g. desktop, tablet or mobile phone.
Is there a way to "replace " by a percentage of the screen width in order to have a proportional margin?
4 Replies