…bloginfo('name')) as the alternative description:echo '<p class="site-title"><a href="' . esc_url( home_url( '/' ) ) . '"><img id="logo" alt="'.esc_attr(get_bloginfo('name')).'" src="' . $logo . '">' . get_bloginfo('name') . '</a></p>';Alt tags should not be used for purely decorative images, otherwise you are essentially forcing the user to sift through excessive and unnecessary information.Provide…
…Speed matters. From the dawn of the internet, the notion of "speed" always has been (and always will be) important in terms of web development and design. We were trying to achieve speed in 1990, we are trying to achieve speed now, and we will be trying to achieve speed…
…blogs.dir folder in wp-content with all of the upload files for the subsites. This will have a numbered folder for the site you're creating, which you copy your files into instead. I'll cover this in more detail below.Backing Up FirstBefore you do anything like this, it's a good idea to back up the site…
…Blog Posts Index Page": is_home() This poorly named Conditional Tag checks whether the blog posts index page is being displayed. In the old times, when WordPress was just a "blogging platform", the "home page" meant the list of your latest blog posts. But after WordPress grew to be a content…
…bloginfo('name'); ?> </a> </p> <p class="site-description"> <?php echo get_bloginfo( 'description' );?> </p> </div>NavigationThis role identifies the part of the page that contains the navigation links for the document or web site. A theme can have multiple navigation locations, and each one can be wrapped in a element with the navigation…
…blog-header.php)Change it to:require ('./subdirectoryname/wp-blog-header.php)So if you've been developing in example.com/development, just change the line to:require ('./development/wp-blog-header.php)Save the new index.php file. Final StepsBack in the WordPress admin screens, turn pretty permalinks on again, with whatever settings you need for your site.Visit the root domain of your site in the browser and…
…blog posts (Settings > Reading). Either way, the Conditional Tag is_front_page() returns TRUE when the front page is being displayed. Accepted Parameters This Conditional Tag doesn't accept any parameters. 15. Checking Whether the Post Has a Thumbnail: has_post_thumbnail() "Featured images" are one of the key parts of the New Post/Page…
…bloginfo('name'); } add_filter( 'wp_title', 'mytheme_wp_title', 10, 3 );Skip to ContentTypically websites will have a common header and navigation menu which, with the exception of highlighting the user's current position, will remain exactly the same. Having to tab through all these links, or listen to a screen-reader repeat them on every…
…blog page by category.What You'll NeedTo follow this tutorial, you'll need: a development installation of WordPress a code editor If you already have a theme you want to use this technique in, you'll be working on your theme's stylesheet. I'm going to create a child theme of the Twenty Fifteen…
…Blog" function, and now users can post into the blog system. A natural extension would be to enable users to change and delete existing blogs. In this session, we are going to build some groundwork for those functions, making a list view of blogs in the admin page and adding…