-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation instructions vague for newbies. #61
Comments
@travisjtodd Hi Travis, do you use mac or windows? To install composer head here and follow the instructions: http://getcomposer.org/ To download the plugin you can either get the zip file from github and then once you have extracted it browse to the folder on the command line and run:
Then you'll have a complete copy of the plugin and you can paste it into your theme's folder structure. To embed the script in your theme you just have to place in it within your theme somewhere and include it via your functions.php. A typical example would be to have an includes folder in your theme for external libraries or addons that your theme uses. Then in functions.php: // load wp-less plugin
include( 'includes/wp-less/wp-less.php' ); Let me know if you need further help. |
A nice contribution would be if the receiving side here would make a pull request out of this help session and improve the documentation README in a way he deems understandable for a completely new person, such as he describes himself. I think the oldtimers, besides being generally busy too, may have difficulty imagining what a newcomer may or may not know or understand. Long story short: if you write it, we (that means sancho :) will merge it. |
@lkraav that would be the ideal, once I've helped you get up and running @travisjtodd could you make some notes here about what information you felt was missing and we'll put together an update for the README |
Your plugin looks really great, but I also am having a difficult time installing the plugin from the instructions. To give you an idea of where I (and possibly other newbies) am at:
What I would love to see is: this would be OK: For what it's worth, I'm getting a white screen of death. Thanks for your work, I can see this being a really valuable addition to my arsenal when I can figure out how to work it. |
@JulianKingman I added some more instructions here https://gist.github.com/harrymt/ea76e7620b301d00b03ae838743a12e6 Enable auto LESS compling for Wordpress sites
// functions.php
function add_less_processing() {
// Enqueue the main .less style sheet
if ( ! is_admin() )
wp_enqueue_style( 'style', get_template_directory_uri() . '/inc/assets/less/style.less' );
}
// use the WP action to hook these into our page build
add_action( 'wp_enqueue_scripts', 'add_less_processing' );
/**
* Add LESS support
*/
require get_template_directory() . '/inc/wp-less.php'; |
@harrymt where does the |
@roborourke sorry I copied the function from my |
I'm new to Wordpress development and don't understand where to install the plugin to have it required in my theme. You say to clone the git repo, but in what directory? Also, I'm unfamiliar with whatever Composer is.
As this is the first time I've touched such things it would be great if you could expand the installation section a bit more so that it doesn't imply that the developer has prior knowledge about the framework.
Thanks.
The text was updated successfully, but these errors were encountered: