• Resolved merich

    (@merich)


    I’ve tried to no avail to remove the author and date created from each post. I was able to do it by putting {display:none;} by entry-meta and entry-utility in my stylesheet, but this also removed my pages at the top of my site. I’m using the Brunelleschi theme.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I think I sorted out the CSS as well as a child theme part too.

    Give this a try: Create a new directory in wp-content/themes directory called brunelleschi-child.

    Now create a style.css file in the brunelleschi-child directory and copy into it the contents from this pastebin link.

    You can look at the prettier page here

    https://wordpress.pastebin.ca/2090591

    Now go to your theme options and select the theme called “Brunelleschi Child Theme”

    Doing it this way lets you keep the original theme intact while letting you customize the theme anyway you like. In your case the CSS is the easiest way to customize a child theme.

    You should put the modifications to the original style.css back or this might not work for you.

    Thread Starter merich

    (@merich)

    Yay! It worked! Sorry it took so long for me to respond. I finally had the time to do it.

    Now, is there a way to just show the date but without a permalink? Possibly in a different font?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Now, is there a way to just show the date but without a permalink? Possibly in a different font?

    Sure, that’s not hard at all. I’ll take a look in a few hours, but it should just require copying and changing one file into the child directory.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Wow, was I mistaken! Brunelleschi is quite a complex theme! I feel smarter just looking at the PHP.

    We’re now venturing out of the child theme and need to edit the parent theme files directly. So make a copy of the whole themes/brunelleschi directory into a new one called themes/brunelleschi-merich.

    I know that contradicts my earlier advise, but I don’t know how to replace an already defined PHP function and good backups are your friend.

    Edit the new themes/brunelleschi-merich/styles.css and change the Theme Name: Brunelleschi to Theme Name: Brunelleschi Merich or anything, just make it different.

    Select that new theme in your dashboard and you’ll be ready to start editing the copies you just made.

    The “by author posted on date” is produced by the function brunelleschi_posted_on() which is in the file themes/brunelleschi-merich/functions.php starting on line 109.

    To just get the date without a permalink try editing that functions.php file (you are working on copies right?) like so:

    On line 109 change this

    printf( __('<span class="meta-sep">by</span> %3$s <span class="%1$s">Posted on</span> %2$s', 'brunelleschi' ),

    to this

    printf( __('Posted on</span> %2$s', 'brunelleschi' ),

    On line 112 change

    sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',

    to this

    sprintf( '<span class="entry-date">%3$s</span>',

    That will produce a “Posted on DATE” without the permalink or the author.

    To change the font, add the .entry-meta .entry-date { } that you want to the end of your new style.css file.

    Thread Starter merich

    (@merich)

    YOU. ROCK.

    So sorry it took me FOREVER to finally post back, but it worked! THANK YOU THANK YOU THANK YOU a million times over!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Wow. I rock.

    I knew that! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide Author and Date?’ is closed to new replies.