-
AuthorPosts
-
October 14, 2014 at 11:28 am #125082
Hi there!
I want to remove author & category on all my posts, maintaining date and “leave a comment”.
I saw that this could be achieved through functions.php, can you provide me the right code to do this?
I’m on Integrity light, and using a child theme. Thanks!October 14, 2014 at 3:25 pm #125251Hi There,
Can you please provide URL of your site for us to check your set-up live and provide you with tailored advise,
Thank you
October 15, 2014 at 8:33 am #125657This reply has been marked as private.October 15, 2014 at 9:50 am #125720Another thing on the same site:
I’ve set a footer with 3 areas, and I’ve put one logo on each area (all logos are the same size), but they are displaced to the left instead of being centered. How can I fix this? Thanks!
October 15, 2014 at 2:56 pm #125923Hi Luciano,
You can do this via CSS instead of editing functions.php file. Please add the following CSS code via Appearance > Customize > Custom > CSS:
.p-meta span:nth-child(1), .p-meta span:nth-child(3) { display: none !important; }
To centralize the footer logos, please add the following code via Customizer:
.x-colophon .textwidget { margin: 0 auto; width: 200px; }
Let us know how this goes!
October 16, 2014 at 3:47 am #126185It worked, thanks!
October 16, 2014 at 10:59 am #126448You’re welcome! 🙂
June 27, 2015 at 2:17 am #314388I did exactly that and see an unexpected “/” at the end of the meta. How can I remove the “/”?
June 27, 2015 at 4:37 am #314446Hey @chairmeister,
Thanks for updating this thread!
The code should work in your site. To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Thank you.
February 10, 2016 at 10:35 am #789312Hi I have the same requirement on my site http://www.simplelivingglobal.com.
I see the response to @chairmeister in this thread was marked private. Can you let me know how you remove author & category on all my posts, maintaining date and comments count?
Regards,
DeanFebruary 10, 2016 at 7:43 pm #790045Hi Dean,
I’m not seeing any meta data on your posts page, did you solve the issue? Anyway the original poster address his issue with the code below:
.p-meta span:nth-child(1), .p-meta span:nth-child(3) { display: none !important; }
Hope it helps, Cheers!
February 23, 2016 at 2:57 pm #809192I had the same problem with the extra / at the end. Just figured it out – try adding this to your customizer:
.p-meta > span:nth-child(3):after {
display:none;
}That hides the closing slash from categories. Hope it helps!
February 23, 2016 at 11:57 pm #809704February 27, 2016 at 10:47 pm #815239Hello,
I am having a similar problem. I’m looking to remove the “Leave a Comment” and the “/” after it. I pasted this code into my custom css
.p-meta > span:nth-child(4) {
display:none ;
}
.p-meta > span:nth-child(3):after {
display:none ;
}In the customizer view it makes the “Leave a comment /” disappear however when I click on preview or upload the changes and surf to my site nothing is changed. I have cleared the browser cashe and the wordpress supercacher as well. My site page to reference is https://www.fitkidrichkid.com/13-1-reasons-start-blog/
February 28, 2016 at 2:32 am #815380Hello There,
Thanks for updating this thread. Upon checking your site, you have inserted an invalid css in the customizer. This is why the other correct css is no longer working. Please update the css and use this code instead:
/* spacing feature image and title */ article.post .entry-header { margin-bottom:20px; } .p-meta > span:nth-child(4) { display:none ; } .p-meta > span:nth-child(3):after { display:none ; } .textwidget { font-size: 14px; } @media (max-width:1340px) and (min-width:1150px){ .x-navbar .x-nav-wrap .x-nav > li > a { letter-spacing: 0.005em; } } @media (max-width:1260px) and (min-width:1150px){ .x-navbar .desktop .x-nav > li > a:not(.x-btn-navbar-woocommerce) { padding-left: 5px; padding-right: 5px; } } @media (max-width:1150px) and (min-width:979px){ .x-navbar .x-nav-wrap .x-nav > li > a { font-size: 12px !important; font-weight: 500; letter-spacing: normal; } }
We would loved to know if this has work for you. Thank you.
-
AuthorPosts