WordPress.org

Support

Support » Themes and Templates » how to use function.php in child theme of Mantra theme

how to use function.php in child theme of Mantra theme

  • Santosh

    @santoshait

    I created a child theme for mantra but it is not working if i ma adding new function to funtion.php or includes/theme-functions.php
    i am adding this code for linking all Post Thumbnails on website to the Post Permalink,
    add_filter( ‘post_thumbnail_html’, ‘my_post_image_html’, 10, 3 );

    function my_post_image_html( $html, $post_id, $post_image_id ) {

    $html = ” . $html . ”;
    return $html;

    }

  • The topic ‘how to use function.php in child theme of Mantra theme’ is closed to new replies.