Remove “by” in the author in main page

Emrah Gölbaşı November 10, 2020 at 11:59 am

İn the front page, I want to remove some parts as below:

– “by:…” I only want to see the name of the author without “by” in the highlight area

– “posted on:…” and “posted by:…” in the posts in the main page

Thanks

Replies (4)

  1. Emrah Gölbaşı November 10, 2020 at 11:59 am

    İn the front page, I want to remove some parts as below:

    – “by:…” I only want to see the name of the author without “by” in the highlight area

    – “posted on:…” and “posted by:…” in the posts in the main page

    Thanks

  2. Spiracle Themes November 10, 2020 at 3:32 pm

    Hi Emrah,

    the By in the highlight area can be removed easily by the CSS below

    span.by {
    display: none;
    }

    Copy and paste it in Appearance -> Customize -> Additonal CSS

    For removing the Posted by and Posted on text, you’ll have to edit the code file. If you’re comfortable to edit then we can proceed further

    Let us know if you have any questions

    Best Regards

  3. Emrah Gölbaşı November 11, 2020 at 11:27 am

    Hello again,
    Thanks for sharing the CSS. It worked.
    For the second issue;
    I would like to keep the date and author information but only remove the “posted on” and “posted by” expressions from there.
    I appreciate if you can guide me through code modification.

  4. Spiracle Themes November 12, 2020 at 3:39 am

    Hi Emrah,

    Please follow the steps below

    1) Go to your theme root directory ie (wp-content/themes/purea-magazine)
    2) Open folder template-parts/post/ and open file content-single.php with the text editor.
    3) Find line number 31 and 32 and remove the text Posted on and Posted by

    Let us know if you have any questions

    Best Regards

  5. Emrah Gölbaşı November 12, 2020 at 3:48 pm

    Thank you for the support. It worked👍

Post a Reply

Reply To: Remove “by” in the author in main page
Your information: