Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Tom Braider

    (@tom-braider)

    The Stylesheet of CpD is not loaded correctly. Is there a counter.css in the plugin directory?

    Thread Starter spottydog

    (@spottydog)

    Hi Tom.

    Yes there is.
    Perhaps the problem is that I have the WordPress Content in a folder called site-content instead of wp-content?
    See the screencap at https://www.websitedesignmorayfield.com.au/screencap1.png
    If that is the issue, is there a way to resolve it?

    Regards
    Iain

    Plugin Author Tom Braider

    (@tom-braider)

    You site is loading “/wp-content/plugins/count-per-day/counter.css” not “site-content” like other plugins. I use the constant PLUGINDIR.

    Try to add one of these lines in your wp-config.php

    if (!defined('PLUGINDIR')) define('PLUGINDIR', 'site-content/plugins');

    or

    if (!defined('PLUGINDIR')) define('PLUGINDIR', dirname(__FILE__).'/site-content/plugins');

    Thread Starter spottydog

    (@spottydog)

    Hi Tom.

    Neither of those worked.
    The site displayed the error message shown here https://www.websitedesignmorayfield.com.au/screencap2.png

    My wp-config file already has the following in it if that is any help:

    define( 'WP_CONTENT_DIR', '/home/website2/public_html/site-content' );

    define( 'WP_CONTENT_URL', 'https://www.websitedesignmorayfield.com.au/site-content' );

    Regards
    Iain

    Plugin Author Tom Braider

    (@tom-braider)

    ok, next try:
    if (!defined('PLUGINDIR')) define('PLUGINDIR', WP_CONTENT_DIR.'/plugins');
    or
    if (!defined('PLUGINDIR')) define('PLUGINDIR', '/home/website2/public_html/site-content/plugins');

    Thread Starter spottydog

    (@spottydog)

    Nope.
    Fatal error using both of those too.

    Plugin Author Tom Braider

    (@tom-braider)

    this works for me with wp-content instead of site-content. i think we have to use a relative path only.

    if (!defined('PLUGINDIR')) define('PLUGINDIR', '/site-content/plugins');

    Thread Starter spottydog

    (@spottydog)

    Nope, still getting a fatal error.
    Just in case I’m doing something dumb, I’ve uploaded another screencap of where I am inserting it in the wp-config.php file.
    https://www.websitedesignmorayfield.com.au/screencap4.png
    If I am doing it wrong, shoot me in the head!!! ??

    Plugin Author Tom Braider

    (@tom-braider)

    I will not shoot, but use ‘ or ” but not &#039 like in the two line above.

    Thread Starter spottydog

    (@spottydog)

    OK, shoot me in the face now.
    I copied and pasted the line of code from my email notification, and not from this page, never realising that what was shown here was different to what was displayed in my email!!!!
    So sorry to waste your time.
    It is now working and I greatly appreciate your patience.

    Cheers
    Iain

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Icons and Graphs not displaying’ is closed to new replies.