Tagged: x
-
AuthorPosts
-
March 10, 2017 at 8:57 am #1401947
Hi there!
How can I add a blog header image to match this page on the blog page? I tried looking off multiple posts on adding a header page, tried lots of different things but couldn’t make it work.
This page –> https://glassjacobson2.wpengine.com/blog/
Look like this page –> https://glassjacobson2.wpengine.com/our-mission/Thanks!
AustinMarch 10, 2017 at 8:58 am #1401948This reply has been marked as private.March 10, 2017 at 9:12 am #1401964Also, could you help me get my featured image on those blog posts? Thanks!
March 10, 2017 at 3:18 pm #1402334Hi Austin,
Thank you for writing in! Please add the code below on your child themeโs functions.php file.
function custom_banner() { if (is_home()) { echo '<div class="custom-banner"><img src="IMAGE URL HERE" title="custom banner" alt="custom banner"></div>'; } } add_action('x_before_view_integrity__landmark-header','custom_banner', 9999);
Replace the IMAGE URL HERE with your actual Header Image URL.
Regarding the feature image, please remove this from your Blog page > Settings > Custom CSS
.entry-featured {display:none}
Hope it helps, Cheers!
March 15, 2017 at 9:43 am #1408059Great, thanks!
1. is there any way to make it full width? It has white space on my big 1920X1080 screen.
2. Can I add text over top of it?As for the featured image.. what code would I put in to take the featured image off the individual blog post page only and not the main blog page?
Thanks,
AustinMarch 15, 2017 at 9:49 am #1408066For example, have the featured image off here https://glassjacobson2.wpengine.com/blog/
and off here https://glassjacobson2.wpengine.com/should-plan-sponsors-offer-the-ability-to-get-a-401k-loan/
March 15, 2017 at 9:53 am #1408072And for the individual blog post page, I’m trying to get it to match this style.
https://glassjacobson2.wpengine.com/tax-planning-preperation/
So like a 269px height with text over top.
March 15, 2017 at 5:18 pm #1408684Hi there,
Please change your code to this
function custom_banner() { if (is_home()) { echo '<div class="custom-banner"><h1 class="h-custom-headline h-responsive h1" style="color: rgb(255, 255, 255); font-weight: 600; font-size: 45px;"><span>OUR MISSION</span></h1></div> <style> .custom-banner { background: url(https://glassjacobson2.wpengine.com/wp-content/uploads/2017/03/Looking-Glass-Blue.jpg); background-color: hsl(230, 100%, 30%); padding: 5.53% 0px; text-align: center; } </style>'; } } add_action('x_before_view_integrity__landmark-header','custom_banner', 9999);
Hope this helps.
March 16, 2017 at 9:28 am #1409634That’s brilliant!! Thank you so much ๐
last thing to add is a little icon above “Through The Looking Glass”, width 100px with margin of 10 at the bottom.
Like this page: https://glassjacobson2.wpengine.com/investment-advisory/
Is that possible?
March 16, 2017 at 9:37 am #1409651On here https://glassjacobson2.wpengine.com/blog/.
And also, is there any way to take off the featured image from the individual blog post pages?
March 16, 2017 at 11:53 am #1409846Hi Austin,
Would you mind pointing out specifically where the “Through the Looking Glass” section is? I tried looking for it but I can’t seem to find it.
To take off the featured image for individual blog posts, please add this code in the customizer:
.single-post .entry-featured { display: none; }
Hope this helps.
March 16, 2017 at 11:54 am #1409848Thanks so much!!
Through the looking glass is on this page. https://glassjacobson2.wpengine.com/blog/
I would like an image above it, with width of 100px and margin bottom of 10px, like this page:
https://glassjacobson2.wpengine.com/investment-advisory/March 16, 2017 at 3:20 pm #1410106Hi Austin,
Please add this code:
.blog .custom-banner h1:before { content: url(https://glassjacobson2.wpengine.com/wp-content/uploads/2017/02/Wealth-Management-White-1.png); width: 100px; clear: both; display: block; margin: 0 auto 10px; }
Please replace https://glassjacobson2.wpengine.com/wp-content/uploads/2017/02/Wealth-Management-White-1.png with the URL of the image you want to use and resize the actual image to 100px.
Hope this helps.
March 16, 2017 at 3:52 pm #1410141THANK YOU SO MUCH JADE!!! I had to tweak a little bit but it’s exactly what I was trying to get. You guys are the best. Thanks!!!!!
March 16, 2017 at 10:21 pm #1410610Thanks for the good words. It means a lot to us. Feel free to ask us again. Have a great day! ๐
-
AuthorPosts