Website Tutorial

Learn how to design a website, write your website copy, design your website graphics and more with this step-by-step tutorial.

Website Tutorial

WordPress functions.php-add CSS styles and JS scripts

Although our theme has a style.css file, it is not used yet. Let’s enqueue it now. Add the following code to functions.php, so that the styles added in style.css will be applied to the theme’s styles: function my_custom_theme_enqueue() {wp_enqueue_style( ‘my-custom-theme’,...
Website Tutorial

WordPress functions.php-Add Featured Images

As with sidebars and navigation menus, we can’t just output featured images in our theme and expect them to work, we must first tell WordPress that we support the feature. In functions.php add: add_theme_support( ‘post-thumbnails’ ); Now we can add_post_thumbnail();...
Website Tutorial

WordPress functions.php-Add a Sidebar

Adding a Sidebar Our theme also doesn’t have a sidebar (widget area), let’s fix that now. First, we need to register the sidebar in functions.php: function my_custom_theme_sidebar() {register_sidebar( array( ‘name’ => __( ‘Primary Sidebar’, ‘my-custom-theme’ ), ‘id’ => ‘sidebar-1’,) );...
Website Tutorial

Regex Fundamentals for Google Tag Manager

Regex symbols, also known as regular expressions, are special characters with unique meanings that allow developers to create complex patterns for matching specific sequences of characters in a text string. Understanding and mastering these symbols is crucial for writing efficient...