Tagged: comments
-
AuthorPosts
-
September 23, 2013 at 1:24 am #164957September 24, 2013 at 3:52 am #165420
Hi Shallnotbe!
For #1, you can try just replacing lines 328-329 with:
if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio') { $link_add = $commentCount === "0" ? "#respond" : "#comments"; if($commentCount == "0") { $text_add = __('Contribute', 'avia_framework' ); } else { $text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' ); }
For #2, try going to Settings>Permalinks and saving your options. If that doesn’t work, change the permalinks to default, save three times and then check to make sure the author link works. If so, change the permalinks back.
Regards,
DevinSeptember 25, 2013 at 5:53 pm #166179Thanks for your help, Devin.
I followed your instructions.
Unfortunately, nothing changed :/1) Still the ‘0’ before the alternative Contribute text in the grid layout.
Replaced the portion of code. The difference between the code I used (previously given by Dude in this thread: https://kriesi.at/support/topic/change-meta-on-grid-blog-posts/) and the one you gave must be very subtle, because I can’t see a difference.2) I tried to change the permalinks several times, or just save the default one +3 time, same issues.
Still a space between the name & surname: domain.com/author/Name%20Surname in the grid layout.Somehow it behaves differently than the meta of the full single articles, where everything runs smoothly, pulling the correct author url (domaine.com/author/name-surname) and the alternative 0 comment code given by Dude works great.
September 26, 2013 at 7:55 am #166473Hello!
Regarding issue 2, change the $author_url =.. line by this:
$author_url = get_site_url()."/author/".get_the_author_meta( 'user_nicename' , $author_id );
Cheers,
JosueSeptember 26, 2013 at 12:34 pm #166581Regarding issue #2: IT WORKS! :)
Josue, Devin, thanks for your help, once again.Still no idea what went wrong with issue 1, but one issue resolved is already something!
September 29, 2013 at 12:30 pm #167798Hi!
For issue 1) replace
if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio') { $link_add = $commentCount === "0" ? "#respond" : "#comments"; if($commentCount == "0") { $text_add = __('Contribute', 'avia_framework' ); } else { $text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' ); }
with
if ( $commentCount != "0" || comments_open($the_id) && $entry->post_type != 'portfolio') { $link_add = $commentCount === "0" ? "#respond" : "#comments"; if($commentCount == "0") { $text_add = __('Contribute', 'avia_framework' ); $commentCount = ''; } else { $text_add = $commentCount === "1" ? __('Comment', 'avia_framework' ) : __('Comments', 'avia_framework' ); }
Best regards,
Peter -
AuthorPosts
- The topic ‘Alternative text for "0 Comment"’ is closed to new replies.