Plugins for logo in wp themes?

Closed. This question is off-topic. It is not currently accepting answers.Asking to recommend a product (plugin, theme,

Closed. This question is off-topic. It is not currently accepting answers.

Asking to recommend a product (plugin, theme, book, hosting provider), tool, library, or off-site resource is out of scope for this site, as it attracts opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 10 years ago.

Improve this question

Is there a plugin where you can upload image "logo" for use in the site's theme rather than the admin area?

Closed. This question is off-topic. It is not currently accepting answers.

Asking to recommend a product (plugin, theme, book, hosting provider), tool, library, or off-site resource is out of scope for this site, as it attracts opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 10 years ago.

Improve this question

Is there a plugin where you can upload image "logo" for use in the site's theme rather than the admin area?

Share Improve this question edited Aug 26, 2010 at 12:57 John P Bloch 11.1k37 silver badges46 bronze badges asked Aug 26, 2010 at 5:28 idontknowhowidontknowhow 3152 gold badges4 silver badges20 bronze badges 2
  • 1 Please elaborate on your question. It is unclear exactly what you are looking for. Please give examples, and if appropriate, screen shots. – MikeSchinkel Commented Aug 26, 2010 at 7:11
  • I don't understand as well, sorry. – hakre Commented Aug 26, 2010 at 9:26
Add a comment  | 

4 Answers 4

Reset to default 1

No, not really. This wouldn't be a plugin since every theme is different. Some themes have this functionality built in, though.

There is no plugin that I know of, but you could add this code to your functions.php file. It would accomplish what you're looking for:

// Add a custom logo to the admin pages.  Image _MUST_ be 30x31, located in the theme images folder and named 'admin-logo.gif'.
function admin_logo() {
    $logo = dirname(__FILE__).'/images/admin-logo.gif';
    $logourl = get_bloginfo('template_directory').'/images/admin-logo.gif';

    if (file_exists($logo)) {
        echo '
            <style type="text/css">
                #header-logo { background-image: url('.$logourl.') !important; }
            </style>
        ';
    }
}

add_action('admin_head', 'admin_logo');

The function will check the images folder in your theme for a file named admin-logo.gif, and if found will add a CSS call to the page header to replace the stock WP logo. As mentioned in the comment, the image MUST be 30x31 pixels.

The logo is controlled by the theme ... so you'll have to use a theme that offers that option.

Alternatively, you could edit the them to change the logo.

+1 on using a theme that supports logos. Unless you are an experienced developer you really want to do as little editing of CSS and PHP as possible.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745154335a4614025.html

相关推荐

  • Plugins for logo in wp themes?

    Closed. This question is off-topic. It is not currently accepting answers.Asking to recommend a product (plugin, theme,

    2小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信