[resolved] Theme check (2 posts)

  1. rahendz
    Posted 4 years ago #

    hi guys.. lately i've a lot question about wordpress code 'cause right now i've developing my own theme.. my next question is about checking theme by theme check plugin.. i've pass from error en warning when i checking my theme but one INFO is killing me, i don't know what it mean.. it's said like this..

    INFO: Possible hard-coded links were found in the file footer.php.
    Line 34: <a href='http://mydomainlater.net/themes/dian'>dian v0.1.a wordpress theme.</a>

    the plugin got highlight the http://mydomainlater.net/themes/dian, so i suppose that link is the problem.. so i tried to change with the http://wordpress.org and return normal with no INFO again..

    so anybody know what happen?

  2. rahendz
    Posted 4 years ago #

    it's solved using this..


    just set the the author name and uri in the stylesheet and when

    it does just do this thing..

    $theme_name = 'twentyeleven';
    $theme_data = get_theme_data(WP_CONTENT_DIR . '/themes/' . $theme_name . '/style.css');
    echo $theme_data['Author'];

    awesome.. it automatically generate link to the author uri..

Topic Closed

This topic has been closed to new replies.

About this Topic