Hide author on certain posts

Home Forums Gillion Theme Hide author on certain posts

Home Forums Gillion Theme Hide author on certain posts

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • Matt Mckinnon
    Participant

    Hello,

     

    I would like to hide the blog author on certain posts.

    I have tried the “Hide Show Author” plugin but it didnt work.

     

    I have also tried adding css to the page – which hides the author on a certain page but still shows in blog categories on the home page and other pages.

     

    I would like to hide the author completely – but for only certain page.

    Can you please assist me?

     

    Thanks

    Matt Mckinnon

    Hi Matt,

     

    I hope you are well today and thank you for your question.

     

    Could you please share me the page URLs from your site where you want to hide it so that I can help you to hide it developing custom CSS code?

     

    Best regards,
    Shufflehound team

    Matt Mckinnon
    Participant

    Hello,

     

    Thank you for the reply, the website URL is https://www.lifehero.com.au/

    I have managed to hide the author on certain blog pages by css (display: none;)

     

    My problem is – they are not hidden on the home page and category pages,

    because all auth0r fields are using the same class?

     

    Can you please assist?

    Yes they all use same classes.

     

    You can hide it on home page and category pages by adding the following CSS code in the Custom CSS code option of your theme on the below path.

     

    Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code

     

    .category .post-meta-content .post-auhor-date,
    .home .post-meta-content .post-auhor-date {
        font-size: 0;
    }
    
    .category .post-meta-content .post-auhor-date a:first-child,
    .category .post-meta-content .post-auhor-date span,
    .home .post-meta-content .post-auhor-date a:first-child,
    .home .post-meta-content .post-auhor-date span {
        display: none;
    }

    Matt Mckinnon
    Participant

    This will hide all authors. Please read my comment – I want to hide authors on chosen posts.

    You have to develop custom CSS code to hide it on selective posts.

     

    You can use Yellow Pencil editor as described in the below page to achieve this.

     

    https://support.shufflehound.com/how-to-change-almost-any-element/

    Matt Mckinnon
    Participant

    I do not want to install another plugin.

    Is there any PHP code that can be implemented to allow the authors to have different classes?

    No there isn’t any builtin PHP code and you have to develop custom code to achieve this.

     

    Developing custom code for custom functionality is beyond the scope of support that we provide here.

     

    If you are not a developer then you can consider hiring a developer to develop it for you. You can hire a developer from any freelance site. Shufflehound recommends the developer https://www.upwork.com/freelancers/~011652ffec8865c6d5

Viewing 8 posts - 1 through 8 (of 8 total)