Archie Makuwa

Author: Archie Makuwa (page 2 of 15)

Open all external links and PDFs in an external window or tab using jQuery

This is how you would open all external links and PDFs in an external window or tab using jQuery.

Now leave me alone…

Change local server time using php.ini on a shared hosting environment

Have you ever been a cheapskate and opted for a shared hosting environment in a foreign country merely because it was cheaper? Haver you ever been frustrated for not being able to control the server system time because obviously, that is not your server?

Cheapskate – A stingy person. Somebody who buys cheap in favour of higher quality or better stuff. Even though they might be able to afford the better. Perhaps ungenerously trying not to spend much on their friends. Not particularly offensive, and often intended to ridicule in a light-hearted manner. North American origin (skate apparently meaning fellow).

 

Well the good news is you can use the php.ini file in your shared hosting account to take control of the server local time as follows:

A list of supported time zones: http://php.net/manual/en/timezones.php

E.g:

Wrap colorbox main div into another Raw

The last time I worked with the Colorbox library was during my “hardcore” Drupal7 days and that was many months ago. I recently found myself creating galleries, pop-ups and so forth over the past 48 hours using jQuery ColorBox: http://www.jacklmoore.com/colorbox/

If you have ever wanted to know how you could easily wrap the colorbox main div with another div, this is how easy it is to do that:

 

Importing a web font using @font-face in shopify’s liquid Raw

 

List all WordPress Categories and their IDs

These few lines can save your life if you are “stupid” like me:

 

WordPress | Get content from a specific post using post_id

Hi,

This is really simple to understand:

 

 

Good bye!

Bootstrap3 Carousel in a WordPress loop…

For starters, this is not sure and we assume you have created a custom post type for the carousel loop.

Read more about WordPress custom post types here: https://codex.wordpress.org/Post_Types

In this instance, we assume the custom post type name is slides:

 

WordPress: Multiple loops on one page Raw

Here… but don’t hang yourself:

 

Lessons from the hen…

Original source: https://www.instagram.com/p/BIzZ20qgvce/?taken-by=mondlimzizi

LESSONS FROM THE HEN:

1. She first lays enough eggs before sitting on them:
GOOD PLANNING.

2. When she starts sitting on her eggs, she minimizes movement:
DISCIPLINE.

3. She physically loses weight while sitting on her eggs due to decreased feeding:
SACRIFICE and SELF-DENIAL.

4. She can sit on eggs from another hen:
INDISCRIMINATE and GENEROUS.

5. She sits on her eggs for 21 days, patiently waiting and even if they don’t hatch she will still lay eggs again:
FAITH, HOPE and COURAGE.

6. She detects unfertilized eggs and rolls them out:
SENSITIVE and DISCERNING.

7. She abandons the rotten eggs and starts caring for the hatched chicks even if it is only one:
WISE, CONSCIOUS and REALISTIC.

8. No one can touch her chick:
PROTECTIVE LOVE.

9. She gathers all her Chicks together:
UNITY of PURPOSE.

10. She doesn’t abandon her chicks before they mature:
MENTORING

 

How do I determine if I’m on the very first page of pagination in WordPress?

Well… this is how:

 

Olderposts Newerposts

Copyright © 2019 Archie Makuwa

Theme by Anders NorenUp ↑