Greeting Users in WordPress

welcome users in wordpress

Somewhere along the line, you may find it necessary to greet visitors in a different way, based on conditions i.e. Are they logged in or not?. So, let’s take a look at this in code. Greeting a logged in user: Conditional Greeting: Another use for wp_get_current_user(): I hope you found this resource useful! Interested in … Read moreGreeting Users in WordPress

How to Create WordPress Siderbars

How to Add a Sidebar in Wordpress

In WordPress, a sidebar allows us to assign certain widgets to a sidebar_id and later reference this with the get_sidebar() function. Thus, allowing us to render specific widgets on any template page. To get started open up your theme’s functions.php file into your favourite text editor and add the following contents to the bottom of … Read moreHow to Create WordPress Siderbars

Tutorials on game, web and mobile app development