Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #125082

    luciano c
    Participant

    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!

    #125251

    Kosher K
    Member

    Hi 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

    #125657

    luciano c
    Participant
    This reply has been marked as private.
    #125720

    luciano c
    Participant

    Another 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!

    #125923

    Nabeel A
    Moderator

    Hi 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!

    #126185

    luciano c
    Participant

    It worked, thanks!

    #126448

    Zeshan
    Member

    You’re welcome! 🙂

    #314388

    chairmeister
    Participant

    I did exactly that and see an unexpected “/” at the end of the meta. How can I remove the “/”?

    #314446

    Rue Nel
    Moderator

    Hey @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.

    #789312

    dpirera
    Participant

    Hi 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,
    Dean

    #790045

    Friech
    Moderator

    Hi 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!

    #809192

    Quilt
    Participant

    I 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!

    #809704

    Rupok
    Member

    Hi @quilt

    Glad that you figured it out and thanks for sharing.

    Have a nice day!

    #815239

    mattbeeps
    Participant

    Hello,

    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/

    #815380

    Rue Nel
    Moderator

    Hello 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.