@media only screen and (max-width: 480px), only screen and (max-device-width: 480px), only screen and (device-width: 768px) { .socialIcons, a#fdbk_tab{ display: none; } } Targeting only the ipad: @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { } If you are trying to target only landscape or portrait orientation, try the following: and (orientation:landscape), like […]
Monthly Archives: March 2011
Worpress: useful codex commands
<?php get_cat_name( $cat_id ) ?> Get the category name if you have the id of it <?php get_category_link( $category_id ); ?> Get the category permalink
WordPress: produce new templates that can be used for new pages
Put them on your Themes directory, any php file that is there and includes the following header will be included in the drop-down menu for templates to choose from while creating a page: <?php/*Template Name: Custom Feed*/
Javascript: check if a variable is undefined without producing an error
if(typeof(a) != “undefined”){}