WordPress.org

Ready to get started?Download WordPress

Forums

Journalism
[resolved] Remove author and date from posts (11 posts)

  1. MarinaMaine
    Member
    Posted 5 months ago #

    I like the theme a lot. But I need to remove the author and the date from all posts. I found advice to add some line to CSS file. But this theme does not have a single CSS file: it has one for IE7, one for IE8, and that is it. I have no idea what does it use for Firefox, for example.

  2. DMBarber
    Member
    Posted 5 months ago #

    First you want to create a child theme. You can find directions here.

    After your child theme is activated (don't worry, if all directions are followed correctly you will not see any difference in your website) simply edit the new style.css in the child theme folder. Add "some line to CSS file" you mentioned and you are good to go!

  3. Tareq
    Member
    Posted 5 months ago #

    Rather than edit each CSS file, create a child theme and pop this in it!

    .post-data {
    display:none;
    }
  4. MarinaMaine
    Member
    Posted 5 months ago #

    The problem is not that I do not want to edit each file, but that there is no css files for most of browsers in this theme. Some how, this theme works without it. And I have no idea how to create a child theme.

  5. DMBarber
    Member
    Posted 5 months ago #

    No worries, MarinaMaine. You will want to create a child theme to protect all the changes you make. Creating a child theme is way easier than it sounds. Do you have access to where your wordpress files are hosted?

  6. stephencottontail
    Member
    Posted 5 months ago #

    Here's all the information you need about creating child themes. And for your other question, style.css is the main stylesheet for your theme. The ones for IE7 and IE8 probably just contain special CSS hacks just for those specific browsers.

  7. MarinaMaine
    Member
    Posted 5 months ago #

    There is no file style.css in this theme. I do not need a child theme: I want to modify this theme. What is the point of your *** advices?

  8. DMBarber
    Member
    Posted 5 months ago #

    @MarinaMaine: We understand you are frustrated. However, please understand that the point of our advices/directions we give you are also for any future reader of this forum that may having similar issues. We volunteer our good, solid, FREE advice in our SPARE time to help you. We get no payment, trade, or compensation of any kind. Also, we are skipping a cumulative decades worth of experience and boiling our directions down to the simplest form possible in an effort to help you. That being said:

    ALL themes have a style.css file. It is a standard of WordPress. It is in the folder with you theme files ../wp-content/themes/journalism/style.css

    You need a child theme so that any, clearly important, changes you make are not erased when an update to your current theme is installed. After you follow the directions to create and activate a child theme you will still be using 'this theme' for your website. You will simply be adding directions for your theme to follow. You will then add to a style.css file located ../wp-content/themes/journalism-child/style.css

    This is the time honored, well practiced, standard way to alter your WordPress theme as outlined by the very creators of WordPress and used by over 77 million WordPress websites.

    An alternate method, which you may appreciate more, is to add this plugin. Then follow the directions to add Tareq's code:

    .post-data {
    display:none;
    }

    I hope this helps. All the best to you.

  9. stephencottontail
    Member
    Posted 5 months ago #

    The thing is, if you modify the theme's files directly, you'll lose all your changes whenever the theme is updated. But instead of creating a child theme, you could also get a custom CSS plugin and put the code that @Tareq suggested.

  10. Tareq
    Member
    Posted 5 months ago #

    I can see you're getting a little frustrated with this. There is a style.css file within the root directory of the theme, there must be one or else WordPress wouldn't be able to install the theme in the first place. WordPress gets the Theme Name, and a whole bunch of other stuff from this file.

    Now to edit your CSS, you could use a custom CSS plugin, like Custom CSS Manager...this is the next best thing to a child theme.

    Then you can simply pop the following into your custom CSS plugin, save and see the changes in your browser.

    Code:

    .post-data {
    	display:none;
    }
  11. bestwebsoft
    Member
    Theme Author

    Posted 5 months ago #

    Hi all,

    As it has already been mentioned, you can create a child theme or make the changes in the style.css file. The file is located in the root folder of the theme and is called style.css. There is line 446 there:

    .post-data {
    padding-bottom: 1.15rem;
    letter-spacing: 0.007em;
    }

    Change it for

    .post-data {
    display: none;
    }

    Please note that the changes will be overwritten if you update the theme. or make the changes in the style.css of the child theme.
    The child theme should be active.

    Sincerely,
    BestWebSoft Supprt Team

Reply

You must log in to post.

About this Theme

About this Topic