Github
-
How to style widget description in admin menu?
Is it ever possible to style widget description in admin menu? Well, the short answer should be no, however longer answer should be yes, of course. You must keep in mind, that this method is a bit tricky. If you may avoid that, please do. If you have to style your widget description using html, well… this article is just for you. I found myself dumbfound when I realized I need to style widget description but… it’s impossible using normal WordPress actions, filter or hooks. WordPress is using wp_sidebar_description function to show widget description in admin panel and it is located in \wp-includes\widgets.php. When you take a look into source,…
-
WordPress: How to localize your JavaScript code?
Update (on 17th July 2017) – see the bottom of the page. In WordPress, while writing theme or plugin, you should always keep in mind localization. Maybe your theme or plugin become so popular and someone would like to translate it into another language? It’s easy for me to think about localization, because I write my themes and plugins using english language and I usually add polish translation, because I’m Pole. So it isn’t very hard to achieve. Localization in WordPress is very easy. Let’s see one example from my plugin, Google Analytics Head. Plugins requires some information in the file header, like plugin name, description, author etc. There is…
-
Hey, admin, hide your login!
I bet, that you, as a WordPress developer, knows very well that using “admin” for your administrator account isn’t very clever. Or “administrator”. Or something like that. Once I saw “root”. Even WordPress installer will let you know that. Use something different. Maybe “top-secret-user”. It is good thing, that is true. Why we should avoid that? Because attacker may discover your administrator account login and may use it (in some top secret magical way) to attack your site. It isn’t a joke, it is a possibility. So, everybody should knows that and apply this to their sites. But… There is a small trick about that… Many sites may reveal your…
-
WordPress plugins repository
A few days ago I mentioned about my new plugins. Two of them are in the official WordPress plugins repository. So, my counter is three now. I won’t delete those plugins on github, if you use this source, don’t worry. Posts about those plugins (with github links): Post/Page specific custom CSS Queen Inspirations WordPress repository links: Post/Page specific custom CSS Queen Inspirations I also updated my good-old plugin Google Analytics Head (icon, banner and screenshot). All of my WordPress hosted plugins.
-
WordPress admin buttons once again
I just wrote small nice plugin to add custom CSS code to certain post/page. So I thought I may use it to show you my admin-like button styles (I mentioned it a few days ago – WordPress admin buttons). I’ve added static image to that post but here you are with brand new preview live! Primary Primary Darkgreen Darkgreen Forestgreen Forestgreen Green Green Lime Lime Limegreen Limegreen Seagreen Seagreen Mediumseagreen Mediumseagreen Springgreen Springgreen Mediumspringgreen Mediumspringgreen Darksalmon Darksalmon Mediumaquamarine Mediumaquamarine Coral Coral Orangered Orangered Turquoise Turquoise Lightseagreen Lightseagreen Mediumturquoise Mediumturquoise Cyan Aqua Cyan Aqua Darkcyan Darkcyan Teal Teal Darkturquoise Darkturquoise Deepskyblue Deepskyblue Sienna Sienna Steelblue Steelblue Dodgerblue Dodgerblue Cornflowerblue Cornflowerblue Royalblue…
-
Post/Page specific custom CSS
Hi, we’ve got brand new plugin for you! Post Page specific custom CSS will allow you to add cascade stylesheet to specific posts/pages. It will give you special area in the post/page edit field to attach your CSS. It will also let you decide if this CSS has to be added in multi-page/post view (like archive posts) or only in a single view. Our new plugin is available on github.
-
Do you like WordPress admin buttons?
Do you like WordPress admin buttons? Yeah, me too. And I noticed that Woocommerce has similar purple buttons. I stopped and I thought for a moment – why shouldn’t I create some other colors? Yeah, that was a good idea. My implementation needs some improvements, but I like it. You may see results over that text (yeah, I know, you know that already, it was easy Captain Obvious). Please note this is a static image file. You may also find source code on github – as SCSS source file and compiled CSS file. To use it, please add two classes to HTML element: .button and .some-button-name, like: class=”button button-darkgreen” or…
-
Google Analytics Head 1.6.0
Since new version of Google Analytics Head plugin is in WordPress repository since Nov 19, 2016, I decided to upload it also on github – you may find it here.
-
Queen Inspirations
Hi guys, I wrote another WordPress plugin, read more here.
-
WordPress custom bulk actions
As I promised, I will write more about custom bulk actions. Because this is very easy technic, I decided to create basic plugin, so you may see source code and bulk actions in…, well, action. Important: this requires WordPress 4.7 or higher! You may find source code at github. Simply download it and put it into plugins directory.