Search for: Log In Free Support [Resolved] Author CSS styling Home › Forums › Support › Author CSS styling This topic has 6 replies, 2 voices, and was last updated 6 months, 2 weeks ago by Leo. Viewing 7 posts - 1 through 7 (of 7 total) Author Posts August 20, 2020 at 8:12 am #1411291 Matthias Hi, I am adding the author using the hook <?php global $post; $author_id = $post->post_author; ?> <p>von <?php printf( get_the_author_meta( ‘display_name’) );?></p> for the blog posts. Now I am trying to style the output. In particular I want it smaller and less distance to the line above and below. I could not figure out the right CSS code for that. Thank you for any guidance, Matt Running on Generatepress: Gesundheitsblog Lanaprinzip | Gesundheit für Körper und Seele | Heilfasten Fachportal | Demenz Forschung Fachportal August 20, 2020 at 8:17 am #1411308 LeoStaff Customer Support Hi there, Any chance you can link us to the site in question? You can edit the original topic and use the private URL field. Let me know 🙂 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ August 20, 2020 at 8:19 am #1411314 Matthias Hi Leo, e.g. https://heilfasten-portal.com/fachartikel-fasten/darmentleerung-entschlacken.html Its about the author name in the beginning… All the best and thank you! Running on Generatepress: Gesundheitsblog Lanaprinzip | Gesundheit für Körper und Seele | Heilfasten Fachportal | Demenz Forschung Fachportal August 20, 2020 at 9:08 am #1411394 Matthias Ps. Idealy the size of the author name is the same like the last modified date and directly underneath it. Running on Generatepress: Gesundheitsblog Lanaprinzip | Gesundheit für Körper und Seele | Heilfasten Fachportal | Demenz Forschung Fachportal August 20, 2020 at 11:07 am #1411609 LeoStaff Customer Support Can you try changing the code to this? <?php global $post; $author_id = $post->post_author; ?> <p class="custom-author">von <?php printf( get_the_author_meta( 'display_name') );?></p> Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ August 20, 2020 at 11:54 am #1411667 Matthias Thank you Leo, this one worked. I created the CSS with this class, all fine! All the best, Matt Running on Generatepress: Gesundheitsblog Lanaprinzip | Gesundheit für Körper und Seele | Heilfasten Fachportal | Demenz Forschung Fachportal August 20, 2020 at 11:55 am #1411668 LeoStaff Customer Support Glad to hear 🙂 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 7 posts - 1 through 7 (of 7 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In