Forums

[resolved] Custom theme (3 posts)

  1. buckmajor
    Member
    Posted 3 years ago #

    Hi there

    I tried following this video tutorial 'Design for wordpress'

    I only just start using wordpress and learning how to design my own theme.

    I have stumbled across a few errors and cant figure out why my gravatar is not working properly. By the way, I am using a virtual host 'XAMPP' for installing wordpress. I activated the gravatar plugin but it is not working.

    Here is the error:
    Error

    Fatal error: Call to undefined function gravatar() in C:\Program Files\xampp\htdocs\wordpress\wp-content\themes\blank\comments.php on line 43

    PHP file: comments.php

    <img src="images/search.jpg" alt="" style="margin-top: -10px;" />

    <img src="<?php gravatar('R', 125, 'images/gravatar.jpg'); ?>" alt="Gravatar" class="floatleft" />

    Any suggestions what I'm doing wrong here?

    Many thanks in advance
    CHEERS :)

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    There's no such function/template tag as 'gravatar()' as far as I'm aware. Perhaps you meant get_avatar()?

  3. buckmajor
    Member
    Posted 3 years ago #

    What the! No one wonder it didn't work :(.
    Thanks heaps Esmi, I will keep trying until works :).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.