Support

Account

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

Solved

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='http://xxx.com/home/contents/htdocs/wp-content/plugins/advanced-custom-fields/css/global.css?ver=4.3.9' type='text/css' media='all' />
    <link rel='stylesheet' id='acf-field-group-css'  href='http://xxx.com/home/contents/htdocs/wp-content/plugins/advanced-custom-fields/css/field-group.css?ver=4.3.9' type='text/css' media='all' />
    

    It should be http://xxx.com/wp-content/plugins/advanced-custom-fields/css/field-group.css?ver=4.3.9

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

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

    
    define('WP_HOME', 'http://xxx.com'); // ブログURL
    define('WP_SITEURL', 'http://xxx.com/wp/'); // 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 http://xx.com/home/contents…&#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.