Wordpress plugin: How to depend on other plugins? - css

I am writing a simple plugin for wordpress (actually a widget, packaged as a plugin, because reasons). I am using bootstrap to style the widget, because reasons. Now, the problem is that should I include bootstrap along the plugin or depend on another plugin (for example https://wordpress.org/plugins/wordpress-bootstrap-css/). The first is easy, but not too nice way to do it. The second I actually have no idea going about. I have found some plugins (such as Plugin-Dependecies) that could be used for it, but I'd like to do it without the meta-plugin.
Is there a way for a plugin to depend on another plugin out-of-the-box? If yes, how should I do it?
Or if there is a better way to do the styling, what would that be?
Thanks in advance.

Look at this WordPress Plugin Dependencies. It may help you.

Related

Use a bootstrap theme with blogdown

I currently have a website which was created using the rmarkdown default site generator. I used a bootstrap theme and I like the look of it and I am familiar with it. I am wanting to change the site over to a blogdown website, but do not want to change the look. I know it is possible to use a bootstrap theme with blogdown/hugo, but I have not found very much information on how this can be done. I am very new to website development, so my understanding is very basic. I do know that there is not just a simple answer to this. I am more looking for suggestions for how I should go about this, or resources that I might be able to use in order to accomplish this goal. If you are interested in seeing the site it is https://jamescuster.github.io/
To anybody that is interested in this, I found this blog post which helps turn any existing static website to hugo. I haven't completely gotten it all figured out, but it seems to working well so far and with a little tweaking I think I will be able to turn the bootstrap theme into a hugo theme.
I would still be interested to hear additional solutions.

Using front end frameworks with a Wordpress site?

I've been tasked with modifying the frond end of a Wordpress site, which is something I have not done before. I was first thinking of using Handlebars an Bootstrap, but I'm not even sure that will even work with the Wordpress framework.
If those don't work, what would be a good way to create a nice UI for the Wordpress site? Is creating my own theme a viable option? What tools am I even available to use?
Thank you.
Some of my favorite starter themes are:
http://themble.com/bones/ and http://underscores.me/
You can also look at frameworks like:
http://themeshaper.com/thematic/ or http://my.studiopress.com/themes/genesis/
I've used AngularJS with WordPress in the past, so I don't see why you wouldn't be able to use Handlebars (I haven't done it myself, but if you search, I'm sure you'll find some help there).
If you still want to use Bootstrap, there some tutorials on how to integrate it: http://digitalfellows.commons.gc.cuny.edu/2013/11/18/learn-bootstrap-part-2-adding-bootstrap-to-wordpress/

Do I have to Upgrade WordPress to "pro" if I want to edit the CSS?

I started using WordPress just a few hours ago because I need to develop a couple of blogs to a client. I understand that WordPress is the best solution if you want something fast but flexible. But, the first thing that I wanted to do was just change the font of the post and I didn't find how to do it (for all the posts, because I changed it on this one using the HTML editor). I've read something about editing the CSS, but it turns that I need to buy the Pro upgrade to be able to use the custom design.
Is this the same if I use WordPress in my server?
I need someone to guide me on this one. I need WordPress as customizable as it can be. But, I prefer not to pay! :) Unless that's the only way to do it.
If you use WordPress on your own server, you can do anything you like to it - it's open source. The "Pro" upgrade is just for WordPress blogs hosted on the commercial WordPress.com platform.
Do note that running your own installation means you're responsible for adding plugins, themes, keeping the code up-to-date, etc. That has a cost too, even if it's not money directly out of your pocket.
If you are using wordpress on your own server - you are free to do anything with it. The best way to customize your site then is using a child theme. It will contain your customization, overriding styles from previously loaded parent theme (and/or adding some scripts). You will be able to upgrade parent theme then without loosing your customization (until parent theme owners deprecate something you use, but it must not happen often). There are some plugins for simplifying working with it as well. There are also some easier customization ways, if you want just minor changes - such as Custom CSS in Jetpack plugin, which works in similar way, as far as I know.
If you're using a wordpress.com account, you have less freedom in modifying things, consider using paid custom CSS plugin maybe. Or maybe mentioned above jetpack will do.
Also, as mentioned in other answers - there are wordpress codex, wordpress.org forums, and wordpress stackexchange, they seem to be better place for such questions.
In your wordpress admin section of your site (usually www.yourdomain.com/wp-admin) on the left hand side nav bar, you will find a section called "appearance", if you expand this and click "editor" you can edit all of the files that your current theme uses. A quick warning, if you are doing this on a live server, the changes you make are live as soon as you save them!!
Hope this helps
I'm pretty sure you do not have to pay to customize CSS. Check your server installation... particularly in the folder $wordpress_install_home/wp-content/themes/default.
You should have access to all the CSS files in there.

Blank Theme for Wordpress

I need to build a new WordPress site form scratch. So I guess I need a blank theme to do that. I need to know where I can find such a theme like that, and I need a tutorial that can help me to create my first WordPress theme from scratch.
I'm new in that world. So please I need your help.
If you're starting with no WP knowledge, I believe you're better off modifying a blank theme than you are creating one from scratch.
Here is a great tutorial I used when I started doing custom themes. The HTML is getting outdated semantically, but it will teach you all working parts of a WP theme.
As a starter theme I use HTML5 Boilerplate which is full of quality HTML5 and additional features like file caching, cross-browser readiness, mobile device readiness, and file caching, to name a few. Also it's got a minimal default styling.
You may also find the wordpress site helpful. Cheers.
starting with twentyten or twentyeleven isn't a bad option either.
Whatever theme you choice make it a child theme.
It may seem like something complex at first but it will make things easier along the way.
Theme Hybrid has a great blank theme: http://themehybrid.com/themes/skeleton
I have a starter theme on github that was originally based off html5 boilerplate that you can check out.. https://github.com/FernE97/html5-blank-slate

Custom Wordpress Editor?

After looking around for hours I couldn't see anything even close to what I saw here:
http://www.youtube.com/watch?v=Y2Bu5NoYZ7M&feature=player_embedded
As you can see, they created a custom editor for Wordpress (not just some edits to TinyMCE), its a whole different editor even with an option to switch back to TinyMCE.
Does anyone know how to create custom editors for wordpress without altering the core files and just via a custom theme? I am starting to think its a custom meta box...but I am not sure.
Any clue will be much appreciated!
I suggest to use a plugin to extend the default tinymce WP uses.. Take a look at this plugin: http://wordpress.org/extend/plugins/wp-super-edit/screenshots/
If you really want a completely different editor, ckeditor is quite ok.. There is a plugin too: http://wordpress.org/extend/plugins/ckeditor-for-wordpress/screenshots/
Always use or write a plugin an don't change any core files is indeed the way to go!
Please let me know what you think!

Resources