• Resolved themadcatlady

    (@themadcatlady)


    Hi there, I absolutely adore this theme, thanks for making it available for free.

    I would like to remove the date from the blog page (homepage) and also the single post pages, but cannot find the files in which to do this. Which files do I need to edit and what code do I need to take out? Would be great if someone could help, thank you.

    Regards,
    Barbarella
    https://www.thepurrzone.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Barbarella,

    you don’t need to scan your files to delete code. You can do this with CSS by adding the code below to your themes Custom CSS.

    .single-post .posted-on, .home .posted-on {
    display: none;
    }

    ~ Johan

    Thread Starter themadcatlady

    (@themadcatlady)

    Hi Johan, thanks for your reply. I looked in the theme settings in the dashboard and there is no place to inject custom CSS. There also isn′t a file in the theme′s files called custom.css. I added the code you suggested to style.css, but that didn′t work, and creating a custom.css file and putting the code in there didn′t work either. Or am I misunderstanding you somwhere?

    Hello, try to install the plugin Simple Custom CSS.

    After intall and activation, check the theme options tab in the WP dashboard (the paint brush icon) for Simple Custom CSS. Paste the code from above there, update and hopefully it will work.

    Thread Starter themadcatlady

    (@themadcatlady)

    Hi again Johan, no need to install that plugin, I figured it out!

    In my style.css I found this:
    .post-info a,
    .post-info,
    .entry-header span,
    .entry-header span a,
    .entry-footer a,
    .entry-footer,
    .post-date {
    color: #8F8F8F;
    }

    And all I did is add “display:none” after the “color:#8F8F8F”, and that worked!

    This idea was inspired by your original suggestion, so thank you very much for your help!

    Thats great. But it is still a wise idea to add the plugin though and not make changes in the original files. That way you can always have a collected overlook of the changes you have done to the original code.
    But most important, when you install an update of your theme the changes you make to style.css will be gone. But by separate your changes and let the Simple Custom CSS plugin override the style.css the changes will still be there no matter what you do in the future.

    ~ Johan

    Thread Starter themadcatlady

    (@themadcatlady)

    Thanks for the tips Johan, but tomorrow (don′t have more time tonight, I′m afraid) I′ll create a child theme so there′s not going to be a problem with theme updates.

    I′ll definitely check out that plugin too, cause it may come in handy for future websites I create.

    Thanks again so much for your help. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove Date from Blog and Single Posts’ is closed to new replies.