• Hello all,

    I need to correct some typos in an outgoing user notification email that my theme uses.

    The theme documentation says that I need to create a child theme and somehow enter some code, etc. I am not a developer and this is over my head. ??

    I have read that with the latest WordPress, a child theme is not always necessary.

    Below are the instructions provided by the theme developer to fix their form text.

    Question: Does this function require creating a child theme or is there an easier method to perform this fix?

    Your help is appreciated!

    ***
    Change the notification message of Post Submission

    Use these two filters
    $subject = apply_filters(‘videopro_post_submission_user_notification_subject’, $subject);
    and
    $message = apply_filters(‘videopro_post_submission_user_notification_message’, $message, $video_permalink);

    Following these steps
    1. To change the subject of the message, add these lines into /functions.php of your child theme add_filter(‘videopro_post_submission_user_notification_subject’,’my_post_submission_subject_filter’, 10, 1);
    2. function?my_post_submission_subject_filter($subject){
    3. $new_subject = ‘Your post submission has been approved’;
    4. return $new_subject;
    5. }
    6. ?
    7. To change the content of the message, add these lines into /functions.php of your child theme add_filter(‘videopro_post_submission_user_notification_message’, ‘my_post_submission_content_filter’,?10, 2);
    8. function?my_post_submission_content_filter($message, $video_permalink){
    9. $new_content = ‘Congratulation! Your submission has been approved. You can see it here:?‘ . $video_permalink;
    10. return $new_content;
    11. }
    12. ?
    13. Change the text as you wish.

    ***

    • This topic was modified 3 years, 11 months ago by commontater. Reason: minor edits
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator cubecolour

    (@numeeja)

    This looks like it would require a child theme. Making a custom plugin might also work but as the theme developer has given a step by step guide it would probably be best to follow those steps. If anything then doesn’t work as expected, the theme author should be be able to provide appropriate support.

    Thread Starter commontater

    (@commontater)

    Hi,

    Okay, thanks for getting back to me on this.

    I was hoping for an easy solution… ??

    This site has been having multiple issues so I hesitate to make it more complicated just so I can correct the typos introduced by the theme’s author. I have suggested the typo corrections to the theme developer but have not heard back.

    Unfortunately, I do not understand the instructions. I am not a PHP coder.

    Some questions:

    What do they mean “use these filters”? Use them how? Use them where?

    When it says to “follow these steps” am I supposed to add the code to a PHP file, and if so, where in the file is best?

    When creating a child theme, is it a copy of the entire theme, or just certain files?

    Are the child theme creation plugins safe, or must this be done by hand?

    I know these are a lot of questions.

    Your help is much appreciated. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does this require a child theme?’ is closed to new replies.