Forum Replies Created
-
AuthorPosts
-
verymomMember
Ugh. These forums are useless lately.
If anyone else has this problem, change the version number at the top of the style sheet. THEN change the version number in the functions file. Save both, and shift + refresh and the css changes will FINALLY load.
If anyone has a better fix for this, let me know. Not holding my breath though. Chirp, chirp.
verymomMemberThis is nuts. What is this ver=3.0.0 file? Anyone??
verymomMemberI figured it out, well I found a solution someone else helped me with on another theme. But FYI for anyone else: in the Genesis Simple Edits plugin simply change [post_comments] to [post_comments hide_if_off ="disabled"]
verymomMemberThank you, no. It's just a personal blog. I don't mind having the comments turned off after a certain date.
I just want the comment link to still display after the comments are off. It seems quite odd that it would disappear.
verymomMemberSomeone once told me not to reply to my own threads, but if no one else is... I ought to at least post my progress right?
My brother helped me edit the PHP to remove the timestamp and keep the date:
<?php $pattern = '<time itemprop="commentTime" datetime="%s"><a href="%s" itemprop="url">%s</a></time>'; printf($pattern, esc_attr( get_comment_time( 'c' ) ), esc_url( get_comment_link( $comment->comment_ID ) ), esc_html( get_comment_date() ) ); edit_comment_link( __( '(Edit)', 'genesis' ), ' ' ); ?>
So if I edit the file in genesis, it works. However, I know you're not supposed to do that, it'll just get overwritten in an upgrade. Anyone know how to turn that bit of code into a functions file thingy I can stick in my child theme? The functions file is a deeply mysterious place, I don't quite get it yet.
verymomMemberIt looks like this is the bit of code in the genesis comment.php file. I'm sure I need to put something in my child theme's functions file to remove the time part? But I've no idea how. Any ideas?
<?php $pattern = '<time itemprop="commentTime" datetime="%s"><a href="%s" itemprop="url">%s %s %s</a></time>'; printf( $pattern, esc_attr( get_comment_time( 'c' ) ), esc_url( get_comment_link( $comment->comment_ID ) ), esc_html( get_comment_date() ), __( 'at', 'genesis' ), esc_html( get_comment_time() ) ); edit_comment_link( __( '(Edit)', 'genesis' ), ' ' ); ?>
verymomMemberOh nevermind, I just added it to the
genesis_after_comment_form
area and that solved it.Thanks for all your help!
verymomMemberOh shoot - it's showing up on the main blog page, not just on single posts. I have it in this section:
genesis_after_post_content
What can I do to make it only show on the single posts?verymomMemberOh thank you!! That worked, yay!
verymomMemberSorry, I meant that I directly edited Prose files rather than making a child theme to Prose. So if I update it I will lose all my customizations. It will be much more trouble than its worth.
Can you explain in more detail about the hooks? I've installed the plugin but the reference and hook guide gives me no clue as to how to take my code above and make it work.
Thank you!
verymomMemberI suppose not - it's not a child theme so I don't want to upgrade. (I've learned to do child themes since). Any other way to add this?
verymomMemberI've been using Genesis themes for a few years, but get overwhelmed every time I deal with customizing one.
I don't see a Genesis -> Custom code -> Custom Functions in the menu.
I have Genesis - Theme Settings, Design Settings, SEO Settings, Import / Export, Simple Comments, Simple Edits.
Am I looking in the wrong place? I've made other edits to the functions.php file, but this one won't work there.
verymomMemberNevermind, seems when we added content, it disappeared. Strange...
-
AuthorPosts