Example #1
0
function the_dummy_background_image_style()
{
    the_background_image_style(get_dummy_image_uri());
}
Example #2
0
} else {
    $post_id = get_the_ID();
    $banner_url = get_wpfeatured_image_url($post_id);
    if (is_null_or_empty_string($banner_url)) {
        $banner_url = get_default_banner_url();
        $custom_css = 'default';
    }
}
?>

<header class="banner <?php 
echo $custom_css;
?>
"
  <?php 
the_background_image_style($banner_url);
?>
>
  <div class="container">
    <?php 
if (is_home()) {
    ?>
      <div class="heading">
        <h1 class="sitename italiana">
          <a class="brand italiana nounderline"
            href="<?php 
    echo $home_url;
    ?>
">
            <?php 
    echo $title;