ZKE Posted September 29, 2023 Posted September 29, 2023 Hello - I'd like to match my blog posts with the way my newsletter email template looks (made in ConvertKit). I'd like all blog post pages to display the author profile (avatar and author name) and the published date below the blog headline and to look like the attached screenshot. Can someone help me with the CSS to get this done? Way out of my wheelhouse. Thank you! Site: https://cricket-puma-wbgh.squarespace.com/articles/blooming-romantic-garden-design-by-ecoregion (password is dag)
Solution tuanphan Posted October 3, 2023 Solution Posted October 3, 2023 To make text next to image, you can add this code to Website Tools (under Not Linked) > Custom CSS .blog-item-wrapper .blog-item-author-profile-wrapper>a { display: flex; align-items: center; } .blog-item-wrapper .blog-item-author-profile-wrapper>a span { margin-right: 10px; } to make date appear under name, add this code to Website Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('.blog-item-author-date-wrapper').appendTo('span.author-name'); }) </script> <style> .author-name time.dt-published.blog-meta-item.blog-meta-item--date { display: block !important; } span.author-name span { color: black !important; font-size: 14px !important; } </style> annie_mwm 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
ZKE Posted October 26, 2023 Author Posted October 26, 2023 Thank you!! How can I move this under the blog Title? It's still showing up at the bottom of the page
ZKE Posted October 26, 2023 Author Posted October 26, 2023 (edited) Figured it out from another post 🙂 Used this code in the Custom CSS injection: .blog-item-content-wrapper { display : -webkit-box; display : -ms-flexbox; display : flex; -webkit-box-orient : vertical; -webkit-box-direction : normal; -ms-flex-direction : column; flex-direction : column; } .blog-item-author-profile-wrapper { -webkit-box-ordinal-group : 0; -ms-flex-order : -1; order : -1; margin-top : 0 !important; } Edited October 26, 2023 by ZKE tuanphan and annie_mwm 2
danikaamericaa Posted September 19 Posted September 19 This worked like a charm, thank you!! Any thoughts on adding details or creating a header above blog posts like this site (https://rachaelsgoodeats.com/gameday-garlic-fries/)? Things like the share buttons, "by" Author, and preview of comments/likes? Curious if anyone can offer some direction or advice!
danikaamericaa Posted September 19 Posted September 19 Or how to pull the Bio/description from our Author profile and allow it to show alongside our picture and name?
tuanphan Posted September 20 Posted September 20 21 hours ago, danikaamericaa said: Or how to pull the Bio/description from our Author profile and allow it to show alongside our picture and name? we need to use some CSS + JS to achieve this, you can share link to blog post on your site, we can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment