Forums

GFontr, Google WebFont
Gfontr uses incorrect URL for admin javascript (1 post)

  1. tacone
    Member
    Posted 1 year ago #

    action_admin_head fails to retrieve the javascript files for wordpress installations where blogurl and siteurl differs.

    Here's the fix.

    {{{
    function action_admin_head(){
    echo '<script src="http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js" type="text/javascript"></script>';
    echo '<script src="'.get_option('siteurl'). '/wp-content/plugins/gfontr/gfontr-js.js" type="text/javascript"></script>';
    }
    }}}

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags