Viewing 171 to 180 of 227 items
Archive | WordPress RSS feed for this section

Google Maps API of localhost

Use this Google Maps API for localhost development versions of websites: ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA

0

Save FTP details for locked down servers

If WordPress asks you your FTP host, username and password each time you’re trying to upgrade, you should eaither check your file permissions or use this very useful hack which will make WordPress remember your FTP host, username and password.

0

PHP Operators

This section lists the different operators used in PHP. Arithmetic Operators Operator Description Example Result + Addition x=2 x+2 4 – Subtraction x=2 5-x 3 * Multiplication x=4 x*5 20 / Division 15/5 5/2 3 2.5 % Modulus (division remainder) 5%2 10%8 10%2 1 2 0 ++ Increment x=5 x++ x=6 — Decrement x=5 x–  Full Article…

0

Alternating CSS styles with php

These php operators can be used to increment (++) a variable and divide it (%) by number, thus achieveing alternating code. Just remember to set your count variable to 0 outside of your loop before it starts: Used inside a loop, class names would be named .example-class0 and .example-class1 alternating. Increasing the “2″ number allows  Full Article…

0

Conditional Excerpt with custom read more link

Peter put this piece of code together for digital coffee websites. It detects if there is and excerpt or not and adds in a custom read more link to the article. This code elimates a common issue experienced with excerpts where the more link is always on a new line. The use of variables circumvents  Full Article…

0