Created
October 26, 2017 01:41
-
-
Save kirasiris/0bf028606f0437806f2b4af465d8c351 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.showcase{ | |
background:url(<?php echo get_theme_mod('showcase_image', get_bloginfo('template_url').'/img/showcase.jpg'); ?>) no-repeat center center; | |
} | |
</style> | |
<section class="showcase"> | |
<div class="container"> | |
<h1><?php echo get_theme_mod('showcase_heading', 'Welcome to Kevin Fonseca Wordpress Theme'); ?></h1> | |
</div> | |
</section> | |
<?php | |
// Tambien se pueden usar condicionales if. Ejemplo: | |
<?php if(get_theme_mod ('showcase_heading', 'Welcome to Kevin Fonseca Wordpress Theme') != '') : ?> | |
<h1><?php echo get_theme_mod('showcase_heading', 'Welcome to Kevin Fonseca Wordpress Theme'); ?></h1> | |
<?php endif; ?> | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment