How to hide get_theme_mod if field empty

I’m using: get_theme_mod to show various pieces of info from the theme customizer, in the following format: <a href=”https://wordpress.stackexchange.com/questions/88378/<?php get_theme_mod( $name, $default ) ?>”>This is the link</a> I would like to hide the whole line if that particular customizer field is empty. What could I wrap around the anchor to accomplish this? 3 s 3 … Read more

Use default value of wp_customizer in theme_mod output?

Is there a way to output the default value of a wp_customize text field type using the echo get_theme_mod (); without actually going in the Theme Customizer, modifying something and then saving it? I just read on another stackexchange question that the get_theme_mod will only show something after you save it in Theme Customizer. Not … Read more

get_option() vs get_theme_mod(): Why is one slower?

I’ve been using get_theme_mod() for some time in various projects of mine. I decided to take advantage of the Theme Customization API in WordPress v3.4 once it was available as I felt it was an indispensable tool for my clients to use. After some time, I began to notice that my sites were feeling a … Read more