…with a low contrast rating (e.g. background and text colours). Exactly which colours you should be comparing will depend on the choices you've made available to the user. Below I've simplified this idea by assuming a fixed font-colour of #444444, and comparing this with the user-provided background colour.I'll leave the…
…with creating a simple shopping cart using AngularJS. We created a simple design but there wasn't really enough AngularJS to call it an AngularJS application. In this part of the tutorial series, we'll create a custom AngularJS directive to implement the required functionality.Getting StartedLet's start by cloning the source code…
…With Yii2 series, I'm guiding readers in use of the newly upgraded Yii2 Framework for PHP. In this tutorial, I'll show you how to add custom JavaScript and CSS scripts and libraries to your Yii application. Yii uses a concept it calls Asset Bundles to make it easier to manage…
…with direct access to the database and let him or her play with your data. In the first case, when you have to change the item prices one by one following the User-Interface provided by the Store Admin Panel, it is a secure way to do it, but changing thousands…
…with a custom "read more" text. the_content( '– Read More »' ); ?> Getting & Displaying the Post Content for Feeds: get_the_content_feed() & the_content_feed() These template tags get and output the content for feeds. Parameters Both template tags accept only one parameter: $feed_type (optional—string):Type of the feed.(Default: Default feed type)…
…with five different example cases in which Conditional Tags come in handy. In the following five tutorials, we went through 65 Conditional Tags in total. There were 66 documented Conditional Tags when I started and finished writing this series. One of them was a deprecated function (is_plugin_page()), so I wrote…
…with HTML, it's very easy for them to break things, especially if I've included images or links.An easy way around this is to replace the widget areas in your theme with a custom post type, using WP_Query to output posts of that custom post type in the sidebar.You do this…
…with a site based on hierarchical pages and style each section of the site using a different color for each section. We'll also look at an alternative technique based on adding categories to pages.What You'll NeedTo follow this tutorial, you'll need: a development installation of WordPress a code editor If…
…with two options which are:Product OptionsInventoryProduct OptionsThe following options come under this section:Product ListingProduct DataProduct Image SizesDownloadable ProductsProduct Listing1. Product Archive/Product PageAs an online store owner, you will always want to maintain visual uniformity for your customers. Whenever a customer visits the store and looks for a product, he or…
…with JavaScript?”Actually, JavaScript uses a different approach than C# or C++ to create an object-oriented language. It is a prototype-based language. The concept of prototyping implies that behavior can be reused by cloning existing objects that serve as prototypes. Every object in JavaScript depends on a prototype which defines a…