Home Forums Trusted Pro Header Image Reply To: Header Image

#2372
Andy
Keymaster

Yes it should be OK. It looks like putRevSlider() is Revolution Slider’s built-in function that does similar job to the WordPress do_shortcode() function.

In the code I gave earlier, I forgot about the blank canvas template condtitonal, so the code to use should be this:

Replace this code in header.php file:

if ( ! is_page_template( 'template-blank-canvas.php' ) ) {
	trusted_header_title();
}

with this code:

if ( ! is_page_template( 'template-blank-canvas.php' ) ) {
    if ( is_home() ) {
        putRevSlider( 'Featured Posts' );  
    } else {
        trusted_header_title();
    }
}