|Open4Tech Team

About Open4Tech Team

This author has not yet filled in any details.
So far Open4Tech Team has created 22 blog entries.

Remove Scripts And Styles In WordPress

WordPress provides dequeuing and deregistering functions for both scripts and styles. This is very useful for reducing the potential of conflicts with plugins and load time. wp_deregister_script()wp_deregister_style()wp_dequeue_script()wp_dequeue_style() Each of these four functions accepts only one parameter: $handle – the unique name of the script or stylesheet you want to deregister or dequeue. They allow us

2019-05-18T22:47:32+03:00By |Categories: WordPress|0 Comments

Add Styles In WordPress

Wordpress has enqueuing system which provides programmable way of loading styles. It has a built-in support for dependency management. Example: function custom_styles() { wp_register_style( 'my_stylesheet', plugins_url('my-stylesheet.css', __FILE__), array('bootstrap-main'), '1.0', 'screen'); wp_enqueue_style('my_stylesheet'); } add_action( 'wp_enqueue_scripts', 'custom_styles' ); We need to register a stylesheet to be enqueued by using a wp_register_style function. This function accepts 5 parameters:

2019-05-18T22:47:46+03:00By |Categories: WordPress|0 Comments

Check If a Script Has Been Loaded In WordPress

WordPress has a function which lets us detect if a specific script has been enqueued, registered, printed, or is in the queue to be printed.  It can be very useful for avoiding conflicts with libraries which have been already loaded by other themes or plugins. wp_script_is( $handle, $list ); It accepts two parameters: $handle –

2019-05-18T22:48:04+03:00By |Categories: WordPress|0 Comments

Add Scripts In WordPress

WordPress has an enqueuing system which allows developers to utilize the built-in JavaScript libraries rather than loading them multiple times. This helps avoid conflicts and reduces page load time. Example: function custom_scripts() { wp_register_script( 'my_script', plugins_url('my_script.js', __FILE__), array('jquery'), '1.0', true); wp_enqueue_script('my_script'); } add_action( 'wp_enqueue_scripts', 'custom_scripts' ); First, we need to register a script to be

2019-05-18T22:48:18+03:00By |Categories: WordPress|0 Comments

Rich Controls In ASP .NET

There is no strict definition of ASP .NET rich control but generaly these are controls whose object model is largely separate from the HTML they generate. Rich controls are still handled as single objects, they only differ from normal controls in terms of more complex HTML and user interface being generated. Let's take a look

2019-05-18T22:48:31+03:00By |Categories: C#|Tags: , |0 Comments

Basic Usage of View State in ASP .NET

Web applications cause a problem that is not present on traditional applications stored on the user's PC (tablet/phone). The problem is the following: the user connects to the server and requests a page, the page is delivered, the connection is stopped and then all the page objects are deleted from the server memory. This stateless

2019-05-18T22:50:22+03:00By |Categories: C#|Tags: |0 Comments

B-tree vs. Binary Tree

B-Trees and binary trees are both non-linear data structures and while their names may sound similar, they’re very different in nature. In this article, we will compare them to make them easier to distinguish. B-Tree B-tree is a self-balancing tree data structure in which a node can have more than two children. The height of

2019-04-07T13:17:28+03:00By |Categories: Explained Simply|Tags: |0 Comments

Introduction to Server Controls in ASP .NET

ASP .NET provides a new way to handle dynamic web forms. Unlike the conventional style where the developers had to adapt and improvise with HTML tags and attributes, ASP. NET server controls automatically provide their HTML structure. This allows the developers to focus just on the desired behavior. These server controls behave like objects and

2019-05-18T22:51:09+03:00By |Categories: C#|Tags: |0 Comments

BFS vs. DFS

Breadth-First Search (BFS) and Depth-First Search (DFS) are algorithms for traversing graphs. Traversal is the process of accessing each vertex (node) of a data structure in a systematic well-defined order. Choosing the algorithm depends on the type of data you are dealing with. There are generally two types of traversal and the main difference between

2019-04-07T13:19:44+03:00By |Categories: Explained Simply|Tags: , |0 Comments