WordPress.org

Ready to get started?Download WordPress

Forums

how to use function.php in child theme of Mantra theme (1 post)

  1. Santosh
    Member
    Posted 1 year ago #

    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;

    }

Topic Closed

This topic has been closed to new replies.

About this Topic