-
AuthorPosts
-
September 10, 2014 at 6:27 pm #316830
Hi
How can I have an image run the full width of the page ? And if I set height to 100% of browser what exactly does that mean in parralex mode?
September 10, 2014 at 10:37 pm #316971Hi codecreative!
Please add a color section element to your page with a unique ID ( http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/color-section-ID.png ) and then add image element inside it and then add following code to Quick CSS in Enfold theme options under General Styling tab
#your-custom-id .container { width: 100%; margin: 0; }
Best regards,
YigitSeptember 11, 2014 at 11:11 am #317274Hi Yigit
This isn’t appearing to work as a full width image can you look at http://www.codecreative.uk for me?
It’s the image underneath the contact form
September 11, 2014 at 12:02 pm #317292Hi have you logged in and changed anything?
September 11, 2014 at 12:50 pm #317322Hi!
No i have not logged in or changed anything. Can you please try re-creating the section? Color section element is currently inside another container while it should not be
Cheers!
YigitSeptember 11, 2014 at 2:32 pm #317398I’m not sure why. What is the name of the container it shouldn’t be within ?
September 11, 2014 at 2:39 pm #317402Hey!
Container should be inside your color section element. Your color section element is not fullwidth now. Can you please try de-activating all active plugins and check if that helps?
Best regards,
YigitSeptember 11, 2014 at 3:02 pm #317416hmm i can see it working fine on this page http://www.codecreative.uk/what-we-do/
looks like its something to do with my home page template file
September 11, 2014 at 3:12 pm #317427How strange I actually took the content from the page.php template and pasted it over my own custom template (I didn’t replace the template naming at the top of course)
And it still failed to do have the image at full width it
September 11, 2014 at 3:33 pm #317443Am I doing the right thing using page.php as a template for a page template?
I’ve simply just opened page.php and saved as page-alternativehome.php and then I placed this in the top of the file
<?php
/*
Template Name: Alternative Home
*/And uploaded the file to my child folder.
Then I set it as my page template and the issue is still there of it being within a container. But if I use the default template it isn’t
What am I doing wrong my friend?
September 11, 2014 at 6:33 pm #317566If you go on home, and then click on what we do, the two pages are basically identical. What we do uses the “default template”. The home page uses a template file that is basically page.php saved as a new file name and given a new template name. The two pages should be identical. For some reason when using your own template file the color element is being wrapped in a container. Please help :(
September 11, 2014 at 6:39 pm #317570It seemed setting background property, Stretch to fit fixed it :)
September 11, 2014 at 6:46 pm #317575In fact it had nothing to do with that. In order for the color element to be full width it needed to not be the very first element within the page content
September 12, 2014 at 4:56 am #317824 -
AuthorPosts
- You must be logged in to reply to this topic.