Create a Custom Block for Gutenberg in WordPress

Instead of having one big chunk of content, as it was until Gutenberg had been introduced in Wordpress 5.0, the web page is now segmented into smaller parts, called blocks. The editor provides a wide variety of blocks that you can use across your pages and posts, but since this is WordPress, there’s always room

2020-01-28T08:15:13+02:00By |Categories: WordPress|0 Comments

Customize Product Tabs in WooCommerce

In this article, I will show you how to customize WooCommerce tabs. I will start by adding the tab because it contains almost everything we need to know. add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' ); function woo_new_product_tab( $tabs ) { $tabs['description_tab'] = array( 'title' => __( 'Description Tab', 'woocommerce' ), 'priority' => 50, 'callback' => 'woo_description_tab_content' ); return

2020-01-08T21:21:22+02:00By |Categories: WordPress|0 Comments

Add WordPress “At a Glance” Items

Sometimes we want to add items to the dashboard widget called "At a Glance". This can be done with the filter dashboard_glance_items. add_filter( 'dashboard_glance_items', 'add_custom_glance_items', 10, 1 ); function add_custom_glance_items( $items = array() ) { $items[] = '<a href="URL"'>My URL</a>'; return $items; } In the example above we use filter to add one item to

2020-01-10T19:01:27+02:00By |Categories: WordPress|0 Comments

Create Block Templates for Gutenberg in WordPress

Since WordPress 5.0, Gutenberg is the new default editor for content creators. The idea of ‘blocks’ is the main concept behind the new editor. They are components that can be used to add desired functionality to the content in easily manageable sections. Gutenberg editor supports customized templates with pre-populated blocks, which will help you suggest

2019-07-09T22:17:25+03:00By |Categories: WordPress|1 Comment

Add and Remove Block Styles in Gutenberg in WordPress

Every block type in Gutenberg editor can have multiple style options. It is useful to learn how to add and remove them. By using the Block Styles UI for previewing and selecting different styles, you and your editors won’t need to remember specific class names. You can add styles to any block type in Gutenberg,

2019-07-08T18:11:38+03:00By |Categories: WordPress|0 Comments

Create Custom Post Type And Taxonomy In WordPress With Gutenberg

WordPress has gone a long way from being a simple blogging platform to one of the most complex and widely used content management systems. It provides us with several post types by default: post, page, attachment, revision, navigation menu, etc. While these are useful, they are nearly not enough for the various other types of

2019-05-24T21:13:35+03:00By |Categories: WordPress|0 Comments

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