• Hi there..

    Profile image that i uploaded from my computer won’t display if WordPress Address (URL) was different from Site Address (URL).

    My site homepage is different from the directory i installed WordPress.
    Wordpress Address (URL): http://www.crafternesia.com/online
    Site Address (URL): http://www.crafternesia.com

    So i tried to add “online” in paths.php file before /wp-content/
    line 11
    define(‘_ABH_GRAVATAR_DIR_’, (is_dir(ABSPATH . ‘online/wp-content/uploads’) ? ABSPATH . ‘online/wp-content/uploads/gravatar/’ : _ABH_ROOT_DIR_ . ‘/gravatar/’));

    and
    line 26
    define(‘_ABH_GRAVATAR_URL_’, (is_dir(ABSPATH . ‘online/wp-content/uploads/gravatar’) ? get_bloginfo(‘url’) . ‘online/wp-content/uploads/gravatar/’ : _ABH_URL_ . ‘/gravatar/’));

    And it works..

    https://wordpress.org/plugins/starbox/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Profile Image Not Display in Subdomain/Subdirectory Site’ is closed to new replies.