Define a Default Theme in WordPress

Your site does not have any default theme.

You probably encountered the following warning in the Tools -> Site Health of your WordPress Dashboard: "Your site does not have any default theme". Usually, WordPress recognizes one of its themes as default, such as Twenty Twenty-One, Twenty Twenty, Twenty Nineteen, etc. However, if you delete the predefined WordPress theme and want to keep your custom theme, you have the option to set your own theme as default in the file wp-config.php.

Adding the code

To define a default theme, insert the following line in the wp-config.php file, just before the line that says /* That’s all, stop editing! Happy blogging. */

define(‘WP_DEFAULT_THEME’, ‘the name of your theme directory’);

Posted on Categories Developers, Word Press

What is web design?

New websites

Web design is a process of combining graphic design and script to create new websites. The process can have multiple phases. However, some designers may not follow all of them.

Graphic design

It is recommended to start with a graphic mockup of the new website. A graphic design provides visuals of different page styles, elements, colors and fonts. The mockup can be done in any graphic editor. A designer that creates graphic mockups for websites should know how the next step in the web design process works in order to create useful designs.

From graphic design to website

Once the graphic design is completed and accepted, the web designer will create individual web elements and start writing the script for the new website. The script ties together graphic elements, text and the styles, so browsers can display the new website to viewers. The final web design should look very close to the graphic mockups with the functionality of a website. Some graphic editors have the capability of converting the graphics to script and can generate all website elements. Depending on the website complexity, additional scripting or more advanced coding may have to be done. That elevates the web design process to the next level.

Script

The basic script used in the web design process is HTML and CSS. The script will make the website work in any browser, on any computer, without the need of having a server host. HTML is the script recognized by all browsers. CSS is the script that gives the website style.

Existing websites

Web design for an existing website includes changing the script and page elements. Included in the web design work are changes of the following nature:

  • text
  • images
  • styling
  • colors and fonts
  • script

Why do you need web design for an existing website?

A website is mainly used to provide information to website visitors and business customers. Business and website owners may want to provide updated information to their customers and website visitors. The updates can be in the form of text, images, forms, surveys, changes in products and services, etc. Style changes may also be needed from time to time, based on the feedback received from visitors and customers.

Posted on Categories F.A.Q.

Authorize.net API Integration: Creating vendor folder

Here are the steps to follow if you’re trying to create the vendor folder on Ubuntu for your authorize.net API integration project:

  1. Create a new folder where you want the authnet files to be stored. Open the Terminal and open the new folder. Install the latest Composer, if you don’t have it already.

Follow the instructions from: https://getcomposer.org/download/ (see below or access the url provided)

Run the following in your terminal to get the latest Composer version:

step 1:
php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);”

step 2:
php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”

step 3:
php composer-setup.php

step 4:
php -r “unlink(‘composer-setup.php’);”

2. Create a new file composer.json in the new folder you created. Inside the json file, write the following, then save:

{
“require”: {
“php”: “>=5.6”,
“authorizenet/authorizenet”: “~1.9”
}
}

3. In Terminal run command: composer update

4. If all goes well, then you’re good. If you get the cUrl or simplexml errors, then do the following before running “composer update” again:

for cUrl: in Terminal, run the following command
sudo apt-get install php7.0-curl

for simplexml: in Terminal, run the following command
sudo apt-get install php7.0-simplexml

After installing the 2 options, run: php composer.phar install

You will be asked to provide a Token. For that,

– sign up or sign in to Github.
– go to Developer settings -> Personal Access Token -> Generate new token (I checked all options)
– copy new Token and paste it in Terminal

It should work now. If you have any questions, I would suggest that you ask the Internet. There are smarter people out there that can help you.

Posted on Categories Developers

“Think Before You Tap”

“Bad guys are increasingly targeting you through your smartphone. They send texts that trick you into doing something against your own best interests. At the moment, there is a mystery shopping scam going on, starting out with a text invitation, asking you to send an email for more info which then gets you roped into the scam.

Always, when you get a text, remember to “Think Before You Tap”, because more and more, texts are being used for identity theft, bank account take-overs and to pressure you into giving out personal or company confidential information. Here is a short video made by USA Today that shows how this works: https://www.youtube.com/watch?v=ffck9C4vqEM

Obviously, an end-user who was trained to spot social engineering red flags would think twice before falling for these scams. The link goes to a complimentary job aid that you can print out and pin to your wall. You’re welcome to distribute this PDF to as many people as you can.
https://cdn2.hubspot.net/hubfs/241394/Knowbe4-May2015-PDF/SocialEngineeringRedFlags.pdf

Posted on Categories Security News and Alerts

DocuSign Phishing Attack

Hackers have stolen the customer email database of DocuSign, the company that allows companies to electronically sign documents. These criminals are now sending phishing emails that look exactly like the real DocuSign ones, but they try to trick you into opening an attached Word file and click to enable editing.

But if you do that, malware may be installed on your workstation. So if you get emails that look like they come from DocuSign and have an attachment, be very careful. If there is any doubt, pick up the phone and verify before you electronically sign any DocuSign email. Remember: Think Before You Click.

Posted on Categories Security News and Alerts

Largest Single Cyberattack In History!

ALERT: WannaCry ransomware hits 150 countries with over 200,000 victims in only 3 days. The attack crawls for open vulnerabilities in Windows OS. Typically, ransomware like most Phishing attacks use a blended approach of email and web as attack vectors.

Please be sure to: (a) update your Windows OS right away, (b) make sure you have and are using current versions of both email and web security systems, and (c) archive your emails and files to ensure back up and recovery.

Posted on Categories Security News and Alerts