Category: WordPress

How to remove Woocommerce sidebar from front-page using hooks

Woocommerce is one of the most popular plugins for WordPress because it’s used by anyone wants to setup online shop without the need writing a single line of code.

Themes are one of the notable features that come with Woocommerce out of box. It comes with a default theme as well as you can download many out from WordPress.org theme repository and many theme stores online. In fact most of those themes on the WordPress repository and theme stores are fully compatible with WordPress.

Therefore this post is targeting people with custom themes made by themselves or got from somewhere but haven’t come with Woocommerce support.

Let’s start right away!

Go to Appearance -> Edit after logging in to the WordPress Dashboard where Woocommerce is installed.

Look for the functions.php file. For experienced WordPress coders you can create your own site specific plugin. This is where you can add custom code.

Let’s remove a Woocommerce sidebar action.

Use the code below in your themes functions.php or site specific plugin.

<?php

remove_action( ‘woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10 );

Save and reload the front-end of your shop page.

As simple as that.

 

 

 

Good News: Equity bank and PayPal announcement to improve investment.

In a bid to improve their service for Kenya citizens PayPal and Equity Bank Kenya have just announced improvements in their service.

PayPal is an online (internet based) payment service originating from United States of America. PayPal helps individuals and business/organisations to send or receive payments across different countries of the world.

However not all PayPal features are available in to the citizens of every country. For example, the citizens of Kenya’s neighbor to the West “Uganda”, is able to use PayPal features such pay for goods and send payments but is not able receive payments and pay for goods.

This has been different for citizens in Kenya, especially for the Equity Bank customers and US bank account holders. Even though of recent funds withdrawn from PayPal wallet to Equity bank Kenya had to take 8 days ( more than a week) to be deposited on the bank account.

This announcement made by both financial giants confirm the reduction of this delay by 5 days, to bring the delay down to a maximum of 3 days.

This is means more cash flow for the I.T population which largely earns from online money making like blogging, working on upwork and other freelance platforms.

This moves is also a step forward towards increasing the chances of investment by the locals who earn online.

For instance, in 30 days, a earner of 100 USD online in a period of 10 days, will have access to 300 USD in cash feasible to be invested.

 

 

 

CMS Africa Summit here again and this time in Abuja.

CMS Africa Summit here again and this time in Abuja.

It’s happening for the forth time in Africa, it’s a summit to learn and share a lot of information especially about web technologies, content management systems in particular.

Catch up the recap of the recent CMS Africa Summit 2016 in Kampala at Gems Cambridge International school below.

When you go to this event  you could become an influencer in your niche. You could as well improve the market for your products and services. You could also discover new ideas and ways of executing them. My biggest take away was networking with many new people who love what you love.

Similarly if you attended as a participant there is a lot more to learn, competitions to participate in and win.

In 2017, CMS Africa Summit will happen on 10th and 11th March, 2017 in Abuja at FUNTAJ INTERNATIONAL SCHOOL

What’s amazing are the friendly prices of the attendance tickets. Imagine a full day ticket goes for 3000 NGN while a 2 day ticket is at 5000 NGN. Every ticket you get qualifies you to Entrance, Coffee Break, Certificate, and Workshop. What a cheap way to learn, educate, and network.

This year’s theme is empowering technology through opensource. I encourage you to come as individual, or team or group of friends,  you won’t be disappointed.

Membership types are attend, speaker and sponsor. Click here to buy a ticket and learn more about the event.

How to create Web Applications using WordPress! Part 1

WordPress powers over 24million websites online, and people are leveraging it’s simplistic to create amazingly life changing web applications, without spending much time on coding. In article I will teach you how to create Web Applications using WordPress, of course it will involve some coding but it will be easier than any code you have come across.

Assuming you know how to install WordPress, on your host or computer, install it and login afterwards.

Navigate to the plugins WordPress dashboard and install a plugin called Advanced Custom Fields and Custom Post Type UI

After installing them follow part 2 here.

 

 

Take action and paint your vision.

Take action and paint your vision.

For so many months I have been pondering on whether I should learn git or not, I know I needed it than I wanted. Though I kept on procrastinating which made everything difficult. To the extend that even the little I knew evaded from my brain.
 
A few weeks ago, a friend(Bosco Anthony) shared his with me, his TedEx talk video and did more to me especially igniting my motivation.
 
In his video he shared about the game changing ingredients which are Purpose and Momentum. And he shared what he knows are the 5 real life applications for fueling one’s purpose. What interested me more was accountability and vision.
 
How would you achieve a vision if you are not accountable, how easy will it be if you practiced clarity?
 
Last night I wrote a tutorial which could help anyone learn how to create a WordPress plugin.
 
Yesterday (3rd/July/2016), besides being a Sunday, I utilized the day instead of relaxing to create templates for the products I’m about to bring to the market, in addition to creating a WordPress plugin, which will help WordPress website owners add 120px by 600px banners to their websites without writing a single piece of code or waiting for a web administrator to do it for you.This plugin is already uploaded to github.com.
github-git-cmd-push-photo
A screenshot of the process as I pushed to github via Git CMD.
So that anyone can do whatever he wants do to it for free. Whether you install it on your blog or fork it and contribute to it, you’re welcome. Before the end of the day, I will try to upload it to WordPresss.org, fingers crossed. It will be my first in the repository. You may find it here, if you want it.
 
Little of this would happen if I hadn’t watched this 18 minute video. In fact, sincerely, the words Bosco shared helped me find Rhythm and introspect.
 
You can access the video here on youtube.
Simplest WordPress plugins creation, Part 1.

Simplest WordPress plugins creation, Part 1.

There is no question WordPress is the most popular Content Management System, in the world of CMS possibly because of it’s simplistic and the free blog platform wordpress.com and support for several features; theming, plugins, widgets, media management and more being the most notable. I personally love SEO support that it comes with out of box.

Plugins-available-in-Wordpress-dot-org
WordPress.org has over 45k plugins!

Actually wordpress.org has ove 40,000 plugins and more are coming in. So why do I teach someone who to make a plugin? Simply because you may have an idea that is not yet executed though it could be useful to you and other WordPress users. So if you read this short tutorial and other parts, you will be able to do that whenever you want.

Tip: WordPress plugins can be monetized hence make some income for you.

Prerequisite knowledge you should have/know.

It’s important to check yourself for the technologies below.

  • HTML, CSS & PHP knowledge (Must)
  • Javascript/Jquery/Angular knowledge is a plus
  • A text editor such as Notepad++, Brackets & Sublime, etc.
  • A fully working WordPress installation, running on a local/private server. Testing on local(development) set up, is recommended in order not harm the website the visitors are viewing.

Step 1. In a folder of your choice, create a main PHP file of your plugin and name it. e.g my_plugin.php

For preview purposes, I suggest to create a folder, residing in the WordPress plugin folder.

Which is located at /wordpress_install_folder/wp-content/plugins

If you have xampp installed on your development machine, you have this folder in the path; c:/xampp/htdocs/wordpress_install_folder/wp-content/plugins

Step 2: Add plugin code to the file

a.Tell WordPress about your Plugin

A WordPress plugin begins with code that describes the plugin, they code is so helpful for installation, uninstall and management of the plugin. It also makes extending the plugin or updating it’s code easier. Such details include:- Plugin Name, Description, Tags, Author, Version, Author URI and etc. As a general rule of thumb this code goes at the start of the file, enclosed in comments.

Example:

/*

Plugin Name: My Plugin

Author: awebdesigner

Author URI: https://fictiontoactual.wordpress.com

Description: My Plugin is a cool plugin and it will print the date at the footer of website. For illustration purposes.

Version: 0.0.1

*/

b. Add code to do the real thing

add_action(‘wp_footer’,’print_date’);

function print_date(){

echo date(‘Y’);

}

Step 3: Compress and upload to server.

Let see it in action. Compress the plugin and upload it to your site.

Notice: Since WordPress is coded using PHP, it’s plugins supports everything PHP supports, includes, services, MYSQL etc. Don’t limit yourself.

What’s next? Improving the functionality of our WordPress Plugin by adding to the Admin Menu, integrating a form which saves something and display to the users.