how to get theme url in wordpress static page

I am new in wordpress. I added some static page in my wordprees website. In dynamic page we can get theme url by bloginfo(‘template_directory’); but it will not work in static page. so what is the alternative of this code for static page.

Related posts

Leave a Reply

3 comments

  1. my problem is solved, thanks for reply. I use shortcode for getting theme link in page

    //[themeurl]
    function themeurl_func( $atts ){

    return bloginfo('template_directory');
    

    }
    add_shortcode( ‘themeurl’, ‘themeurl_func’ );

    and just write [themeurl] in page we can get themeurl in page