November 23, 201411 yr Hello peeps... I am learning how to add custom theme options and so far, so good. The only thing I am stuck on is.... displaying something if the theme option isn't completed. For example, if someone doesn't upload a logo, I want it to display the theme demo logo. Currently the code I have in place is: <img src="<?php echo theme_option( logo ); ?>" alt="Logo" class="logo-img"> Can anyone tell me how I can change this so the demo logo is shown is the "logo" option hasn't been selected? Thanks in advance :-)
November 23, 201411 yr Look at PHP if/else loops. If they've uploaded a logo, display it, if not, use the default.
Create an account or sign in to comment