mathiti_light_logo

Month: May 2022

WORDPRESS: SECURITY PRACTICES FOR THEMES

Nonces are your friends First and foremost, a nonce can be defined as a “number used once” to help protect URLs and forms from misuse. WordPress nonces are made up of hash numbers and letters, but they have a limited lifetime after which they expire. They help protect against several types of attacks. For example,

remove actons and filters

REMOVE ACTIONS AND FILTERS VIA EXTERNAL CLASSES

REMOVE FILTER WordPress adds a hash (unique identifier) to the function name and saves it in the global $wp filter variable. This can be used to remove default functions from a filter hook and substitute them with anything else. The $callback and $priority arguments must correspond when the hook was added to delete it. This

CSS reset and CSS normalize

CSS: NORMALIZE VS RESET

NORMALIZE Firstly, normalize css is a collection of styles based on what the creator felt would look nice and keep it consistent across browsers. For example, within an <article>, <aside>, <nav>, and <section> tag, Chrome, Safari, and Firefox render <h1> tags with a lower font size and a different margin size than independent tags. In

CSS Methods

CSS METHODS THAT ADJUST CONTENT SIZE

display:flex and display:grid With CSS you can use display: flex and display: grid are supported by all current browsers. The only thing lacking is subgrid functionality, which is only available in Firefox. Example using display: grid: Example using display: flex: It’s worth noting that in the examples that utilize both grid and flex, display:flex is

Disabling Emojis on WordPress

EMOJIS-HOW TO DISABLE THEM ON WORDPRESS

PLUGIN OPTION WordPress allows you to install and activate the Disable Emojis plugin if you want to disable emoji capabilities in your WordPress. On WordPress 4.2 and later versions, just activating this plugin disables emoji support. There are no settings to adjust, and it works right out of the box. Emojis can also be disabled

Element Visibility after scrolling

ELEMENT VISIBILITY-WAYS TO DETECT AFTER SCROLLING

jQuery Appear Plugin-DETECT ELEMENTS When an element scrolls into view or otherwise becomes visible to the user, it fires a custom ‘appear’ event. During startup, use the offsetTop and offsetLeft option settings. Secondly, add the custom data attributes shown below and offset-top and offset-left to DOM Nodes. Example 1.1: You can use $.checkScrolling to trigger

How to access wordpress current FP

ACCESS WORDPRESS CURRENT THEME PATH

ACCESSING THE CURRENT THEME’S PATH IN WORDPRESS To access the cureent theme’s path is not difficult. What you’re looking for is get stylesheet_directory_uri. With this simple function the current theme’s URL can be retrieved. For example: The get_template_directory(); will return to the parent theme if you are using a child theme. On the other hand,

Methods of uploading files with jquery

UPLOAD FILES ASYNCHRONOUSLY WITH JQUERY

Uploading with HTML5 (FormData ) If FormData and the File API are supported, you can upload files with jQuery using the $.ajax() method (both HTML5 features). FormData may also be used to transmit files. Include a file-type input element in your form: Then use the following code below to send it: JQUERY FILES UPLOADER This

Remove Event Handler

EVENT HANDLERS-How to remove them with jQuery

jQuery This can be done by using the unbind function. You can add multiple event handlers to the same object and event in jquery. This means adding a new one doesn’t replace the old ones. Example 1: UNBIND TO REMOVE A SINGLE EVENT Example 2: The following syntax might be quite helpful if you just

Effective methods of detecting mobile

MOBILE DEVICES-EFFECTIVE METHODS OF DETECTING

JAVASCRIPT Developers can utilize the userAgent located in the HTTP headers to see if the user is on a mobile device. A regular expression can be applied to the value of userAgent to see if it contains any keywords, and then the device type can be determined (mobile device, tablet, or desktop). navigator.userAgernt Solution:  Scroller

#Customer Speak

Join Mathiti Ventures AS a Senior Project Manager!

We’re growing and looking for talented people like you!

We’re not big on resumes. They can hold back great talent. Instead, we focus on the content of the person, not the paper

So, we’ve crafted a roughly 30-minute test about the things that are important for this position. Taking this will help us both discover our potential fit.

 

"*" indicates required fields

Max. file size: 5 MB.
Max. file size: 5 MB.

Join Mathiti Ventures AS a Senior WordPress Developer!

We’re growing and looking for talented people like you!

We’re not big on resumes. They can hold back great talent. Instead, we focus on the content of the person, not the paper

So, we’ve crafted a roughly 30-minute test about the things that are important for this position. Taking this will help us both discover our potential fit.

 

"*" indicates required fields

Max. file size: 5 MB.
Max. file size: 5 MB.

Join Mathiti Ventures AS a Senior PHP Developer!

We’re growing and looking for talented people like you!

We’re not big on resumes. They can hold back great talent. Instead, we focus on the content of the person, not the paper

So, we’ve crafted a roughly 30-minute test about the things that are important for this position. Taking this will help us both discover our potential fit.

 

"*" indicates required fields

Max. file size: 5 MB.
Max. file size: 5 MB.

Join Mathiti Ventures as a Senior React Developer!

We’re growing and looking for talented people like you!

We’re not big on resumes. They can hold back great talent. Instead, we focus on the content of the person, not the paper

So, we’ve crafted a roughly 30-minute test about the things that are important for this position. Taking this will help us both discover our potential fit.

 

"*" indicates required fields

Max. file size: 5 MB.
Max. file size: 5 MB.

Join Mathiti Ventures as a Job Title!

We’re growing and looking for talented people like you!

We’re not big on resumes. They can hold back great talent. Instead, we focus on the content of the person, not the paper

So, we’ve crafted a roughly 15-minute test about the things that are important for this position. Taking this will help us both discover our potential fit.

 

 

Coming Soon