function.php additions

Home Forums Explore Free function.php additions

This topic contains 1 reply, has 2 voices, and was last updated by  Bishal Napit 1 month, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1318583

    xosokt.me
    Participant

    I am setting up your Explore Theme. I am having difficulty with my wordpress site not sending emails from the contact form and elsewhere even though the form response shows send successful. I have no reason to believe it is the fault of the theme but I have fixed the error on another site by adding a short script to the theme function.php page. Yours is set up a bit different and I have found more than one function.php page in different folder locations. Where would I insert this script to function properly within your theme:

    function cdx_from_email() {
    return “staff@dansride.org”;
    }
    add_filter( ‘wp_mail_from’, ‘cdx_from_email’ );
    function cdx_from_name() {
    return “Dan G Dolan Memorial Ride”;
    }
    add_filter( ‘wp_mail_from_name’, ‘cdx_from_name’ );

    #1318753

    Bishal Napit
    Moderator

    @xosokt.me

    You can add that in any of the file. But if you get confused on it, then, you can create a child theme and then paste that code in the ‘functions.php’ file of the child theme. Doing this in the child theme, you will not lose this work when the theme updates. Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.