• I’m trying to change the logo on a website https://lawschool.ncaweb.net/

    Seems simple, but the Emerald Stretch theme we have is set to include the admin’s Gravatar as the header logo on the upper left of the pages. The gravatar links up to an email then displays an image.
    I tried changing the admins email but this had no effect.
    I’d like to take out this function and just provide an image url.
    Please see code below for reference to the the header logo in the header.php file.
    Thanks!
    Any advice appreciated.
    h2o

    <div id="header-logo">
            <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>">
              <div id="header-logo-gravatar">
                <?php $defgrav = get_bloginfo('template_directory') . '/img/gravatar_light.png'; ?>
               <?php echo get_avatar(get_bloginfo('admin_email'), '78', $defgrav); ?>
Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    First, login to Gravatar.com and go to My Account/Manage My Gravatars. Under your desired Gravater, click on “Link”. This will give you the URL for the image. The image displayed by this link will automatically change if you ever change your Gravatar.

    For example, here’s the new code using your Gravatar:

    <div id="header-logo">
            <a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>">
    <img src="https://www.gravatar.com/avatar/c9a49e30dfa7475b08244168e52b16a2.png" alt="gravatar" />
              </a>
Viewing 1 replies (of 1 total)
  • The topic ‘Emerald Stretch theme w/ admin’s Gravatar as logo’ is closed to new replies.