Shineyrock web design & consultancy

Shineyrock

Searched for: "using" / 1124 results

A Walkthrough on Conditional Tags in WordPress: 1 to 13

…using the is_sticky() Conditional Tag. Accepted Parameters This Conditional Tag has only one parameter: $post_id (string, optional): The post's ID. (Default: None) Usage Example for is_sticky() Let's say you're making a theme and you want to display a "STICKY" ribbon in sticky posts. Here's what you do: <?php if (…


Using Laravel 5’s Authentication Facade

…Using these migrations, Laravel 5 creates a users and a password_resets table, allowing the default authentication boilerplate to work. I am going to create a third migration to modify the users table just to show you how to customize the default authentication setup.Execute php artisan make:migration alter_users_table_remove_name_add_first_name_last_name in the terminal…


Accessibility, Part 3: ARIA

…using assistive technologies, one way of making that possible is to make it easier for those technologies to parse and understand your site and its content. In this article we'll be focusing on one particular way of doing this: ARIA.WAI-ARIA (Web Accessibility Initiative—Accessible Rich Internet Applications), or ARIA, is a…


Quick Tips to Boost Your WordPress Website’s Speed: Further & Better Optimization

…using many images may double, triple or quadruple your page's weight, and it could make your pages take longer to finish loading. If you can use fewer images, that's just another part of speed optimization ("common sense") but if it's a better idea to keep big images, you can try…


Moving WordPress: Moving Your Site From a Subdirectory to the Root Directory

…using a parent and child theme structure.Beware! This method will not work for Multisite installations, which should always be in the root directory.Before You StartBefore doing this, it's a good idea to make a backup of your site, just in case. Use your preferred backup plugin to do this. And…


A Walkthrough on Conditional Tags in WordPress: 14 to 26

…Using the "Comments Popup": is_comments_popup() You shouldn't judge anyone who uses a 10-year-old theme—or loves retro. If you're developing a plugin, you need to take everything into account, and that includes themes that use the comments popup window. To determine this, you can use the Conditional Tag is_comments_popup(). Accepted Parameters…


Bootstrap3- Innovative CSS Features You’d Love To Know About

…using the contextual color classes on anchor tags and somewhere else where there’s a use of hover-over set by default, then the colors would automatically dim slightly for showcasing that they have been hovered over by the viewer. When it comes to naming the color-based classes, the classes available here…


Accessibility, Part 4: Operable

…using the keyboard alone. Furthermore, the way your website responds to user input (by keyboard or otherwise) should be predictable, clear and safe. This last point refers chiefly to ensuring that any potentially seizure-inducing feature of your site is disabled by default, and users warned before enabling it. This principle…


Programming With Yii2: Validations

…using the current scenario. These attributes are called active attributes. Determine which validation rules should be used by getting the rule list from yii\base\Model::rules() using the current scenario. These rules are called active rules. Use each active rule to validate each active attribute which is associated with the rule. The…


The Ternary Operator in PHP

…using a ternary operator, we can write the above comparison as:<?php $result = 5 > 3 ? "Bigger" : "Less";This is obviously a much simpler way to write relatively easy to understand conditional statements and something we should consider when writing future code,


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.