• Love the Ravenna theme, its very tidy and responsive. Is there a way to have the header image on the front page but remove it from other pages? Also is it possible to remove the header image and leave the header boxes?

    thanks for any help

Viewing 15 replies - 1 through 15 (of 19 total)
  • Sam

    (@soumendra)

    Hello,

    Can you please provide the link to your site so that I can help you regarding that.

    Thank you.

    Thread Starter mahonp

    (@mahonp)

    Thanks Sam

    https://Www.Declan Conlon.com

    Sam

    (@soumendra)

    Hello,

    Please provide a valid link.

    Thank you.

    Thread Starter mahonp

    (@mahonp)

    https://declanconlon.ie/

    sorry Sam I dont know what happened there

    Sam

    (@soumendra)

    Hello,

    You can try this code in your Custom CSS to achieve that:

    .home .header-image {
        background-image: url("https://declanconlon.ie/wp-content/uploads/2016/01/cropped-websiteheader.jpg") !important;
    }
    .header-image {
        background-image: none;
    }
    .header-info {
        padding-top: 127px;
    }
    .home .header-info {
        padding-top: 400px !important;
    }

    Hope that helps you.

    Thank you.

    Thread Starter mahonp

    (@mahonp)

    Thanks Sam,

    Sorry for being completly useless, but do I just copy that into the Customizer as is or do I have to delete other code first?

    Paul

    Sam

    (@soumendra)

    Hello Paul,

    You can try that code in your Custom CSS.

    [ Moderator note: link redacted, please do not send people to your site that way. ]

    Hope that helps you feel free to ask if there is any other problem.

    Thank you.

    • This reply was modified 8 years, 3 months ago by Jan Dembowski.

    Could you please help me with my website? https://www.bybitsandpieces.nl
    I have got the same problem.

    Hi

    I am looking to also remove the header boxes on my website. I’ve read this page dozens of times and have created a child theme to do so but I’m stuck now.

    Can someone please help me?

    I’m also looking to link the icons on the header boxes to their appropriate page.

    Thanks!

    Sam

    (@soumendra)

    Hello claire1987,

    Please share the link to your site so that we can help you better regarding that.

    Looking forward for helping you.

    Thank you.

    Hi

    Thanks for getting back to me. My website is https://hope-recruits.com/
    I’ve had to switch it back to the original theme as the child theme is now coming up as an error, so I’m not sure what I’ve done there.

    Any idea also how to link the header boxes to the appropriate pages?

    Thanks

    With regards to the header linking to appropriate pages, I have put HTML arrows in the text but I want to link the actual icon or whole header boxes to the pages.

    Thanks!

    Sam

    (@soumendra)

    Hello,

    First of all you need to delete the child theme you have created and then recreate it by using this plugin: https://www.ads-software.com/plugins/one-click-child-theme/

    You can deactivate the plugin after created the Child Theme.

    1. By Removing the header boxes are you referring to remove the three boxes? Please let us know so that we can help you better.

    2. for linking the boxes it requires editing core files. Make sure you are using a Child Theme at the time of editing, so that all your changes remain safe even after update.

    You need to go to Appearance > Editor > functions.php and look for this code there:

    	echo '<div class="header-block">';
    	if ($box_icon_1) {
    	echo 	'<span class="header-icon"><i class="fa ' . esc_html($box_icon_1) . '"></i></span>';
    	}
    	echo 	'<h3 class="header-title">' . esc_html(get_theme_mod('box_title_1', 'Solid construction')) . '</h3>';
    	echo 	'<div class="header-text">' . wp_kses_post(get_theme_mod('box_text_1', 'Try it and see for yourself. You will be amazed.')) . '</div>';
    	echo '</div>';
    	echo '<div class="header-block">';
    	if ($box_icon_2) {
    	echo 	'<span class="header-icon"><i class="fa ' . esc_html($box_icon_2) . '"></i></span>';
    	}
    	echo 	'<h3 class="header-title">' . esc_html(get_theme_mod('box_title_2', 'Built with love')) . '</h3>';
    	echo 	'<div class="header-text">' . wp_kses_post(get_theme_mod('box_text_2', 'Countless hours of work and passion went into this.')) . '</div>';
    	echo '</div>';
    	echo '<div class="header-block">';
    	if ($box_icon_3) {
    	echo 	'<span class="header-icon"><i class="fa ' . esc_html($box_icon_3) . '"></i></span>';
    	}
    	echo 	'<h3 class="header-title">' . esc_html(get_theme_mod('box_title_3', 'Responsive design')) . '</h3>';
    	echo 	'<div class="header-text">' . wp_kses_post(get_theme_mod('box_text_3', 'Looks great on any device, no matter the size.')) . '</div>';
    	echo '</div>';

    Replace that with this:

    	echo '<div class="header-block">';
    	echo '<a href="link to the page">';
    	if ($box_icon_1) {
    	echo 	'<span class="header-icon"><i class="fa ' . esc_html($box_icon_1) . '"></i></span>';
    	}
    	echo 	'<h3 class="header-title">' . esc_html(get_theme_mod('box_title_1', 'Solid construction')) . '</h3>';
    	echo 	'<div class="header-text">' . wp_kses_post(get_theme_mod('box_text_1', 'Try it and see for yourself. You will be amazed.')) . '</div>';
    	echo '</a>';
    	echo '</div>';
    
    	echo '<div class="header-block">';
    	echo '<a href="link to the page">';
    	if ($box_icon_2) {
    	echo 	'<span class="header-icon"><i class="fa ' . esc_html($box_icon_2) . '"></i></span>';
    	}
    	echo 	'<h3 class="header-title">' . esc_html(get_theme_mod('box_title_2', 'Built with love')) . '</h3>';
    	echo 	'<div class="header-text">' . wp_kses_post(get_theme_mod('box_text_2', 'Countless hours of work and passion went into this.')) . '</div>';
    	echo '</a>';
    	echo '</div>';
    	
    	echo '<div class="header-block">';
    	echo '<a href="link to the page">';
    	if ($box_icon_3) {
    	echo 	'<span class="header-icon"><i class="fa ' . esc_html($box_icon_3) . '"></i></span>';
    	}
    	echo 	'<h3 class="header-title">' . esc_html(get_theme_mod('box_title_3', 'Responsive design')) . '</h3>';
    	echo 	'<div class="header-text">' . wp_kses_post(get_theme_mod('box_text_3', 'Looks great on any device, no matter the size.')) . '</div>';
    	echo '</a>';
    	echo '</div>';

    Hope that helps.

    Thank you.

    Hi Sam

    Perfect thanks, I will certainly try that.

    With regards to the 3 header boxes (candidates, looking for work & contact us boxes), I am looking to keep them on the home page but remove them from the other pages.

    Many Thanks

    Sam

    (@soumendra)

    Hello,

    You need to add this in your Custom CSS for achieving that:

    .header-image {
        display: none;
    }
    .home .header-image {
        display: block;
    }
    @media screen and (min-width: 975px){
    .site-header {
        margin-top: -75px;
    }}

    Hope that helps.

    Thank you.

    • This reply was modified 8 years, 4 months ago by Sam.
Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Ravenna header image’ is closed to new replies.