Constants

Ashford uses PHP constants to help you quickly reference paths to easily use assets on your child theme. It also sets several “flags” that give you control over your code.

ASHFORD_DIR
File path location for the Ashford directory

ASHFORD_LIB
File path location for Ashford.

ASHFORD_CHILD_DIR
File path location to your child theme’s folder.

ASHFORD_CHILD_URI
URL location to your child theme’s folder.

Flags

IS_MOBI
A constant that is set as a string to “true” or “false”  based on the return of the Mobileesp script.

Example of use:

if (IS_MOBI==='true') {
// do something for mobile only
}

IS_CHILD_THEME
A constant that is set as a string to “true” or “false” whether the current theme is a child theme.

Example of use:

if (IS_CHILD_THEME==='true') {
// do something for a child theme (not for the parent)
}