…Blog Is the "Main Site" of the Network: is_main_site() If you're developing for WordPress Multisite, eventually there will come a time when you need to detect the main site. The Conditional Tag is_main_site will help you then: It determines whether the given site ID is the main site of the…
…Blog Post or a Page: is_singular() I don't know why, but this one's my favorite Conditional Tag: is_singular() can detect when any post type is being displayed. It's basically a combination of the Conditional Tags is_single(), is_attachment() and is_page(). Plus, if you set a post type (or an array of…
…blog page according to their category, creating color coding by category.A lot of sites that use this technique also take it further by adding distinct styling to each section of their site, in a way that co-ordinates with the styling on the main blog page or home page. You can…
…What You'll Be CreatingIf you're asking, "What's Yii?" check out my earlier tutorial: Introduction to the Yii Framework, which reviews the benefits of Yii and includes an overview of what's new in Yii 2.0, released in October 2014.In this Programming With Yii2 series, I'm guiding readers in use of the…
…blog posts index page": is_home() Checking whether the current theme is a child theme: is_child_theme() Checking whether the post is in the given category: in_category() Checking whether a "page template" is in use: is_page_template() Checking whether the page is an archive page: is_archive() Checking whether the page is a "date archives" page: is_date() Checking whether the given widget is in use: is_active_widget() Checking whether the page…
…blog-page--cms-23684 Description: Theme to support tuts+ tutorial on styling pages differently in each section of a site. Child theme for the Twenty Fifteen theme. Author: Rachel McCollin Author URI: http://rachelmccollin.co.uk/ Template: twentyfifteen Version: 1.0 */ @import url("../twentyfifteen/style.css");This tells WordPress everything it needs to know to create a child theme and…
…A lot of my friends are C# or C++ developers. They are used to using inheritance in their projects, and when they want to learn or discover JavaScript, one of the first questions they ask is: “But how can I do inheritance with JavaScript?”Actually, JavaScript uses a different approach than…
…blog entries), and structures (for entries that require their own hierarchy or sort order). Of course, Craft offers categories and tags for entries as well. Craft also offers fully configurable custom fields out of the box: Craft provides the ability to relate elements together using its sophisticated schema. These relations can be brought…
…blog, a checklist for clients who are ready for a new website or website re-design. What information do you need to know and have before talking to a web designer / company / freelancer.Download checklistWe share this article with our sister company, designscan.me, get insight in your website
…Blog. So now that you’ve got this all set up, let us know if it’s helping you spend less time testing.This article is part of the web dev tech series from Microsoft. We’re excited to share Microsoft Edge and the new EdgeHTML rendering engine with you. Get free virtual machines…