Child theme: .entry-meta styles don’t work after removing link from post date
-
Hello all. I’m hoping another user can answer me here as I’ve hassled the theme author more than enough!
I’m using a child theme for MH Magazine Lite.
I wanted to make it so the post date on individual post pages doesn’t link to anything. This has been accomplished by adding the following code to my functions.php (thank you, MH themes for this!):
if ( !function_exists( 'mh_magazine_lite_post_meta' ) ): function mh_magazine_lite_post_meta() { echo '<span class="entry-meta-date updated"><i class="fa fa-clock-o"></i> ' . get_the_date() . '</span>' . "\n"; } endif; add_action( 'mh_magazine_lite_post_meta' );
The problem now is that the .entry-meta styling in my style.css file no longer has any effect. I had a dotted border above and below the date and I had control over the margins. Now the borders are gone and the date is crammed tightly between the page title and the content.
Obviously, I’m not a coder. I just switched to a child theme and have been working to get everything back how I had it when I modified the main theme. This is the final piece of the puzzle. I’m probably missing something minor, but without knowing code, it’s a complete mystery to me.
I did try editing my functions.php entry using the .entry-meta reference, but because I don’t know what I’m doing, my wild guesses just broke the site completely. Those experiments have been undone so I’m back to the functions.php code above.
I’m reading up on this stuff but am still hopelessly lost on this.
Thanks.
- The topic ‘Child theme: .entry-meta styles don’t work after removing link from post date’ is closed to new replies.