Closed saffa803 closed 9 years ago
Can you include the code you're using? Did you follow the download instructions in the readme file that explain how to download and install the submodules that are included?
I cloned the library into my theme and installed the submodules as required.
This is the code I added to my functions:
// Include the main library file. Make sure to modify the path to match your directory structure. require_once ( dirname( FILE ) . '/better-font-awesome-library/better-font-awesome-library.php' );
add_action( 'plugins_loaded', 'roots_load_bfa' ); /**
(see usage notes below on proper hook priority) */ function roots_load_bfa() {
// Set the library initialization args (defaults shown). $args = array( 'version' => 'latest', 'minified' => true, 'remove_existing_fa' => false, 'load_styles' => true, 'load_admin_styles' => true, 'load_shortcode' => true, 'load_tinymce_plugin' => true, );
// Initialize the Better Font Awesome Library. Better_Font_Awesome_Library::get_instance( $args ); }
Do I need to include the Wordpress plugin in my theme as well?
Hmm, I'm not sure why this would be failing. Is the BFA Library included in the same directory as the file from which you're calling these functions? Any chance you could send me a copy of your theme to test?
Whats the best way to send you the theme?
On Feb 9, 2015, at 10:37, Mickey Kay notifications@github.com wrote:
Hmm, I'm not sure why this would be failing. Is the BFA Library included in the same directory as the file from which you're calling these functions? Any chance you could send me a copy of your theme to test?
— Reply to this email directly or view it on GitHub https://github.com/MickeyKay/better-font-awesome-library/issues/2#issuecomment-73449543.
You can just email me at mickeyskay@gmail.com.
On Sun, Feb 8, 2015 at 6:50 PM, saffa803 notifications@github.com wrote:
Whats the best way to send you the theme?
On Feb 9, 2015, at 10:37, Mickey Kay notifications@github.com wrote:
Hmm, I'm not sure why this would be failing. Is the BFA Library included in the same directory as the file from which you're calling these functions? Any chance you could send me a copy of your theme to test?
Reply to this email directly or view it on GitHub < https://github.com/MickeyKay/better-font-awesome-library/issues/2#issuecomment-73449543 .
Reply to this email directly or view it on GitHub https://github.com/MickeyKay/better-font-awesome-library/issues/2#issuecomment-73450356 .
If it helps to anyone. Do not forget to install and activate the wordpress plugin after following all the instructions in installation.
Hi,
Thanks for a great plugin.
How do you include the better font awesome library in a custom wordpress theme as I've followed the instructions in the readme but nothing is happening, i.e No tinymce button, etc.