Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter coreigh

    (@coreigh)

    Okay,

    If I create a folder /wp-content/include-me, and place all my includes in the folder the plugin works. The include-me folder can not be a sym link, and the files inside include-me can not be sym links.

    OR

    If I modify plugin.php and hard code my path in the define() function the plugin works.

    OR

    If I define the constant in the wp-config.php using the __DIR__ constant (as you suggest above) AND modify the plugin.php file to NOT check for ‘INCLUDE_ME_DIR’, then the plugin works.

    So my testing says that the plugin does not work with a custom path unless I modify plugin.php

    It still appears to me that the plugin.php overwrites the INCLUDE_ME_DIR constant.

    Thread Starter coreigh

    (@coreigh)

    Okay I did a little more testing.

    In my wp-config.php I have
    define(‘INCLUDE_ME_DIR’, WP_CONTENT_DIR . ‘/mypath/custom-include’);
    as the last line ( I do have a blank line as the actual last line in the file.)

    if I edit your plugin.php file like this:
    if (!defined(‘INCLUDE_ME_DIR’)) {
    // define(‘INCLUDE_ME_DIR’, WP_CONTENT_DIR . ‘/include-me’);
    }

    Then the plugin works. However …

    If I leave the above section uncommented, then the php constant INCLUDE_ME_DIR is OVERWRITTEN! This is not supposed to be possible.

    I am using Apache2 on Ubuntu 18.04 with PHP8

    • This reply was modified 2 years, 6 months ago by coreigh.
    Thread Starter coreigh

    (@coreigh)

    EXCELLENT! Its always exciting to find out that its not my fault.
    hahaha 😉

    @Dlo015, Do you at least have the Typography section in your Theme Customizer? If not then maybe the plugin did not install properly?

    Two thoughts on the “It won’t save” issue: 1) you may just need to log out of wp-admin and log back in, but #2 Do you have a valid Google Font API key AND #2b do you have the API key authorized for Fonts and for the domain of the site you are working on?

    I beat my head against the wall all afternoon one day because even though I had an API key I had not authorized it for Fonts …

    Also you mentioned you have many selectors; It may be easier to trouble shoot a single selector and get ONE working, so you know it works, and then add the rest.

    To anyone else finding this plugin less than intuitive I found this link someehat helpful as a “Getting-Started” type document:
    https://www.inmotionhosting.com/support/edu/business/recommended-wordpress-plugins/easy-google-fonts-plugin

    • This reply was modified 4 years, 8 months ago by coreigh. Reason: added a link

    Hello! I do not know if yours is the same problem but I found that when I created my CSS selectors in the Settings menu I typed it wrong.

    You have to name it exactly as you would when creating a stylesheet.

    In other words I wanted a class called ‘site-title’ but the correct way to type it is .site-title , notice you NEED the period in front to designate it as a class. The same would go for the pound symbol (hash-tag, #) to identify an ID.

    I’m sure you have long since figured this out, but I hope this post helps other people.

    • This reply was modified 4 years, 9 months ago by coreigh.
Viewing 5 replies - 1 through 5 (of 5 total)