Home Forums Front-end Issues ACF css/js is not pointing to the correct di


ACF css/js is not pointing to the correct di

  • Hi,

    I’ve installed ACF plugin and it’s not working properly.
    I just realized that, my html looks like this.

    <link rel='stylesheet' id='acf-global-css'  href='' type='text/css' media='all' />
    <link rel='stylesheet' id='acf-field-group-css'  href='' type='text/css' media='all' />

    It should be

    the path of “/home/contents/htdocs” is unnecessary

    I’ve this setting in my wp-config.php

    define('WP_HOME', ''); // ブログURL
    define('WP_SITEURL', ''); // WordPressのURL
    define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/content' );
    define('WP_CONTENT_URL', WP_HOME. '/content');
    define('WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins' );
    define('WP_PLUGIN_URL', WP_HOME. '/wp-content/plugins');

    But i dont understand why the link tends to start from…&#8230;

    Any idea please?

  • fixed it.

    Just in case anyone faces the same problem, ACF doesnt work with symlink.
    Sorry, i googled and read on this before, but never occured in my mind that my problem was caused because of this.

    point WP_PLUGIN_DIR and WP_CONTENT_DIR to the REAL directory and it works.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘ACF css/js is not pointing to the correct di’ is closed to new replies.