Tagged: x
-
AuthorPosts
-
December 1, 2016 at 4:23 pm #1278011
AndyDaupertParticipantI have added css to put a background image in the footer top and bottom. The image shows up on the homepage, but not on other pages. Also, using Inspect Element, when I hover over the image name, it is not loading on the other pages. I am not getting it…help?
http://wolfeandswickard.com/mainsite/
WP: 4.6.1
X: 4.6.4
Cornerstone: 1.3.3December 1, 2016 at 8:27 pm #1278282
LelyModeratorHi Andy,
Please use complete URL for background image.
Your site is in this folder: mainsite.
Your image url is http://wolfeandswickard.com/mainsite/images/footer-texture.jpg
CSS background image is declared as this:.x-colophon.top { background: url(images/footer-texture.jpg); background-attachment: fixed; }Your homepage URL is
http://wolfeandswickard.com/mainsite/so when the CSS is added it will be looking forhttp://wolfeandswickard.com/mainsite/images/footer-texture.jpgwhich is the correct image URL.
On inside pages like About it will look for this imagehttp://wolfeandswickard.com/mainsite/about/images/footer-texture.jpg. The page permalink about is added to the URL of the image thus is incorrect. Please update your CSS to this:.x-colophon.top { background: url(http://wolfeandswickard.com/mainsite/images/footer-texture.jpg); background-attachment: fixed; }Or try this:
.x-colophon.top { background: url(/images/footer-texture.jpg); background-attachment: fixed; }The slash means that it will look for the images folder on the your wordpress root folder which is mainsite.
Hope this helps.
December 2, 2016 at 6:04 am #1278687
AndyDaupertParticipantArgh, of course! I was trying to keep my code short. Thank you!
Note: I did try the “/” before “images” but it did not work.
December 2, 2016 at 7:45 am #1278757
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1278011 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
