Background image
-
I’ve got the image under the img folder. Do I need to add that directory to get the image to display?
.jumbotron { background-image: url("midwestroof.jpg"); }
<?php /** * Template Name: Front Page * * Template for displaying a page without sidebar even if a sidebar widget is published. * * @package understrap */ get_header(); $container = get_theme_mod( 'understrap_container_type' ); ?> <div class="wrapper" id="full-width-page-wrapper"> <div class="<?php echo esc_attr( $container ); ?>" id="content"> <div class="row"> <div class="col-md-12 content-area" id="primary"> <main class="site-main" id="main" role="main"> <div class="jumbotron"> <h1>Image should be shown here, right?</h1> </div> </main><!-- #main --> </div><!-- #primary --> </div><!-- .row end --> </div><!-- Container end --> </div><!-- Wrapper end --> <?php get_footer(); ?>
- The topic ‘Background image’ is closed to new replies.