ejm
Forum Replies Created
-
Forum: Plugins
In reply to: [Say what?] changingThank you for your reply.
re:
You read the code that outputs the strings. That will tell you the exact string to use for the “original string”, “text domain” (if required) and content (if required).
Why does “if required” for text domain and text content not appear prominently in the support documents? Are you saying that these fields can be left empty?
I know the exact string. I have had no problem altering other strings; it is just this particular string that is giving grief.
I have read the example codes in the documents. That is not the difficult part. Locating the “text domain” for this particular string is the problem. It does not appear in the coding; the textdomain listed on the parent theme style sheet does not change the string.
But you are right. This plugin (free or Pro) is not for me. It is not cost-effective to pay such a large amount to alter one string. I have deleted it from my WP. Because I am not willing to pay for Pro, I will refrain from reviewing the plugin.
Forum: Fixing WordPress
In reply to: how to change “awaiting moderation” string?I was mistaken about the location of the string “Your comment is awaiting moderation.” It is in /themes/twentytwelve/functions.php.
If anyone knows how, or can point to a page outlining how, to change the child functions file so that the string changes, I would be most appreciative.
(So far, the only suggestion at the Say What forum is that I pay for the Pro version of the plugin.)
Forum: Plugins
In reply to: [Say what?] changingThank you for your reply.
I am not guessing at the string. I confess that after hours of searching for the answer (including looking hopefully at the page on your site, “replacing-wordpress-strings-context), and after plugging “twentytwelve” into the text domain in your plugin and having the string replacement fail, I got confused about where the string was located. The string is located in “/twentytwelve/functions.php”.
At this point, I’m not sure that paying $40 (or more, depending on whether those are US or Cdn $) is the appropriate alternative in this case. It’s just one string replacement.
My question remains: how does one learn what the “text domain” and “text context” are?
Forum: Fixing WordPress
In reply to: how to change “awaiting moderation” string?Re:
what is better than having someone else figure out how to do it and then using that?
This is exactly why I have come into the wp forum. I had hoped to locate the fix to put into my theme’s functions.php. I tried one more thing (I have used this method successfully for 3 other strings.) Sadly, this does NOT work to change “your comment is awaiting moderation” string.
// https://ronangelo.com/change-or-translate-text-on-a-wordpress-theme/ function e2019_change_text4( $change_text4 ) { if ( $change_text4 == 'Your comment is awaiting moderation' ) { $change_text4 = 'All comments are moderated. But as soon as your comment has been approved, it will be displayed universally.'; } return $change_text4; } add_filter( 'gettext', 'e2019_change_text4', 20 );
Because I have zero desire to switch themes at any time, for now, it is looking like I will have to resort to modifying the core file, with careful notes to myself so that I will know where I modified it.
If the Say What plugin really was simple to use, I would use it instead.
Thank you for your replies, Joy. I will move my queries about the plugin over to Say What forum.
Forum: Fixing WordPress
In reply to: how to change “awaiting moderation” string?Excuse me for replying to myself.
I installed the Say What plugin to use until I learn how to achieve this without a plugin.
However, my definition of “easy-to-use” is radically different from Lee Willis’ definition of “easy-to-use”. There is zero support for how to locate “text domain” or “text context” for the string “Your comment is awaiting moderation” that is located in wp-includes/comment-template.php.
Forum: Fixing WordPress
In reply to: how to change “awaiting moderation” string?Thank you for your response, Joy.
Because this is just a simple cosmetic change to some arbitrary wording in the WP core, , I was hoping to be able to achieve this without a plugin. My experience, over the years with WP, is that many plugins lose their support when their authors disappear.
Please excuse me for replying to myself.
I’m happy to report that after revising my category.php coding by looking at the following
https://developer.www.ads-software.com/themes/template-files-section/taxonomy-templates/#category
as well as checking my php coding at this very handy page at
https://phpcodechecker.com/the category pages are now showing correctly.
-E
Forum: Fixing WordPress
In reply to: category pages produce “site is experiencing technical difficulties”I have now moved this over to
Because the issue is not yet fixed, I’m reluctant to mark it resolved here.
Forum: Fixing WordPress
In reply to: category pages produce “site is experiencing technical difficulties”Good idea, t-p. Thank you for your help.
Forum: Fixing WordPress
In reply to: category pages produce “site is experiencing technical difficulties”Update:
I have stared at the coding in my child theme’s category.php and it turns out I had neglected to close a
<span>
.I re-activated WP DoNotTrack and now the error message “This site is experiencing technical difficulties” appears only on the categories that are undefined in my child theme’s category.php.
Can someone please point me to where I can go to correct what is clearly a coding error on my part?
/blog/category/crossblogging/wordless-wednesdays/ is working just fine
/blog/category/crossblogging/ is not….
-E
Forum: Fixing WordPress
In reply to: category pages produce “site is experiencing technical difficulties”Any ideas for how to fix category.php? Do you think I have to actually list each of the other category numbers in the ‘if, else’ sections?
Forum: Fixing WordPress
In reply to: category pages produce “site is experiencing technical difficulties”Okay. But then you say:
When I activated the plugin WP DoNotTrack, the error message was produced
I’m confused.
So sorry!! This is what comes of replying in haste (what happened to the edit button in these forums???)
When I activated WP DoNotTrack, the error message was produced. When I deactivated it again but activated all the rest of the plugins, the error message is gone. But. Only the categories that have specific images and words (encoded in my child theme’s category.php) show up fully. All of the other category pages show only the first few common lines of the blog – and no sidebar.
It appears to me that WP DoNotTrack is part of the problem and the other part of the problem is something in my coding (or miscoding) of category.php.
(I hope that made sense!)
-E
Forum: Fixing WordPress
In reply to: category pages produce “site is experiencing technical difficulties”Thank you for your reply, t-p
I deactivated all plugins as you suggested and one by one (starting with what I consider to be the most important: WordFence) and the error message disappeared. However, nothing past the header of the page on many of the categories (including “food and drink”, “equipment and techniques”) appear. The category pages for categories 56, 57, 70, 74 DO appear correctly.
When I activated the plugin WP DoNotTrack, the error message was produced and the stark and mainly blank (except for the message “site is experiencing technical difficulties” category page was generated.
This is an improvement but not quite as much of an improvement as hoped for…
It would be nice to have all the category pages be filled in normally.
Category page that is now showing normally: /blog/category/crossblogging/wordless-wednesdays/
Category page that is only partially showing: /blog/category/food-drink/
I have the following coding on my theme’s category.php page:
/*............... Customizing category pages ................*/ if (is_category(56)) { echo '[coding for image for category 56 "Wordless"]'; } elseif (is_category(70)) { echo '[coding for image for category 70]'; } elseif (is_category(57)) { echo '[coding for image for category 57]'; } elseif (is_category(74)) { echo '[coding for image for category 74]'; } else {echo '';} ?></h1> <div class="meta"><?php echo category_description(); if (is_category(56)) { echo '[specific wording for category 56 "Wordless"]'; } elseif (is_category(70)) { echo '[specific wording for category 70]'; } elseif (is_category(57)) { echo '[specific wording for category 57]'; } elseif (is-category(74)) { echo '[specific wording for category 74]'; } else {echo '';} ?></div>
Because these are the only category pages that now show correctly (with the WP DoNotTrack plugin deactivated), does this mean that I must include in category.php ALL of the category special wording for each category?
-E
awrco2001, this page explains how to disable the checkbox or change the text, without using a plugin:
https://www.ads-software.com/support/topic/update-4-9-6-checkbox-comments-privacy-approved/Forum: Plugins
In reply to: [Better Recent Comments] Date formatThank you for all your help, Andy.