Full Width Area Background Image Not Showing
Permalink
I'm new to C5, and working on a page type that has a full-width section that uses an image for the background. Here (http://staging.lifestylerevolutionstx.com/combat-ready.html) is what the page is supposed to look like. I used the technique described in this thread (http://www.concrete5.org/community/forums/themes/customising-theme-background-images/) without any luck. I'm thinking the issue probably has to do with the reference to the image file. I do not understand how the attribute gets associated with the actual image file. Here is the code included in my <head>:
and here is the section that needs the background image:
Any help is much appreciated!
<?php $bg_img = $c->getAttribute('gymMatBackgroundImage'); $bg_img_src = $bg_img->getRelativePath(); ?> <style type="text/css"> .bar4 { background-image: url(<?php echo $bg_img_src; ?>); } </style>
and here is the section that needs the background image:
<div class="fullWidthBar bar4"> <div class="row"> <div class="large-12 columns"> <h3>Sign Up</h3> <div style="width: 50%; height:300px; background-color:white; float:right;">Calendar Placeholder</div> <p>Sign on for a three or six month commitment to recieve a discount</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> </div> </div> </div>
Any help is much appreciated!
Your classes have not the same names.
New