whatevaitis
Forum Replies Created
-
You have a good one as well ??
Nevermind. I just invalidated all CDN files and it’s fixed. My mistake.
I GOT IT.
Thank you.
I’m not too bright about this stuff.
Still interested in donating/paying for support.
I’m happy to pay for support/make a donation. Do you have a PayPal or something?
When you said to copy the function
mh_magazine_lite_post_meta()
from my parent theme, I don’t know if the text above is all there is or if it’s part of a bigger block of code. I can’t find this line in the parent theme.
I didn’t paste the entirety of the code originally – just the part about the date. Here’s what I have in my functions.php:
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' );
Am I missing anything there?
Thanks. Sorry to be a pain.
- This reply was modified 7 years, 9 months ago by whatevaitis.
Reviewed 5 stars. Thank you.
Oh, thank you much!
Oh, thank you much. Kind of fumbling my way through some of this stuff, but It’s all working now.
I really appreciate your time. And your theme! It’s really great.
Absolutely everything is working as I had hoped except one thing: the topic of this thread – removing linking from the dates on post pages.
The code you provided for mh-custom-functions.php worked when I modified the the primary theme, but I can’t seem to get the child to use the modified mh-custom-functions.php. I did create the includes folder in my child theme directory and put the file in there. The group and ownership are correct.
I’ve read this method generally only works for template files and not for functions files. I don’t want to be a hassle and you’ve already helped a lot. But is there a quick solution to get this mh-custom-functions.php code working in my child theme?
echo '<span class="entry-meta-date updated"><i class="fa fa-clock-o"></i>' . get_the_date() . '</span>' . "\n";
Thank you! I transitioned to a child theme today and it wasn’t as bad as I thought it would be. A few tweak here and there and I’m good to go – apart from mods I made to php files.
I’ll have to do some research to learn about pluggable functions. Sounds like just copying the entirety of a php file would be bad, because I wouldn’t be getting new code from updates.
I’ll see what I can get away with.
You have a great weekend as well.
Resolved.
Thank you!
Can I just copy the modified lines from my modified style.css to a child theme’s style.css? Or would that just conflict with the parent? I don’t know if special code is needed for child themes.
I have redundant backups of everything, including all of my modifications. If I can update MH Magazine, create a child, then just copy the relevant changes from my backups to the child theme’s files, then that’s something I need to do this weekend.
Thank you for your help. I appreciate it and understand that I’m pushing this thread far outside the realm of MH support. Plus, I’m a free user. So I’ll understand if there is no reply. ??
Thanks
That did the trick, thanks!
Unfortunately, because I can modify but not write code, and because I’m broke, I have to modify the theme each time I update. I know, it’s a horrible way to do things.
If I could just copy my modified style.css to a child, I would be fine. But If i understand correctly, it’s not that simple.
Thank you for your help.