Viewing 1 to 10 of 10 items
Tag Archives: Conditional

WordPress: Custom has_embed function

Taken from the great t31os! Recently someone on the WordPress forums asked if there was an easy way to determine if a post has any content embedded and if so, a link could be provided to indicate the visitor should click it to see the full post where the embedded content is available. The well  Full Article…

0

Create your own conditional tag in WordPress

As teaken from: WP Ninjas. Have you ever wanted to do something based on a specific set of conditions. Sure you have and you’ve probably used  the WordPress Conditional Tags at least once or twice. Conditional Tags are extremely useful functions that check a set of conditions for you. They work like this… The is_single function returns  Full Article…

0

Internet Explorer specific CSS

As much as we don’t like to deal with the IE bugs, we still have to face it because your boss and visitors are still using Explorer. It gets frustrating when different versions of Explorer displays web pages differently due to the inconsistent rendering engine. We typically use IE conditional comments to fix the IE  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

Conditional CSS with PHP

I used this snippet of code to set a different css class or id based on the page template. It could be modified to be conditional based on being the the home page as well. Also note that is had to be put in the code/document as a single line for it to work…..don’t know  Full Article…

0