• Resolved fcitdavid

    (@fcitdavid)


    I used the directions here (OceanWP support article) to create a custom header. Unfortunately I cannot find a way to display the site tagline in the custom header.

    I feel like I’m missing something, because when I was originally creating the custom header template the tagline was showing right below the logo, but now it’s gone.

    Any help would be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Can you please share your site link so that I can check it?
    Also, try to add the below code to the functions.php file of the child theme and check it works or not.

    function prefix_tagline() {
    	// Site description
    	if ( '' != get_bloginfo( 'description' ) ) { ?>
    		<div id="site-description"><h2><?php echo bloginfo( 'description' ); ?></h2></div>
    	<?php
    	}
    }
    add_action( 'ocean_after_logo_img', 'prefix_tagline' );
    Thread Starter fcitdavid

    (@fcitdavid)

    That code works great!

    I haven’t published the site yet, so I don’t have a URL I can share, but your code above is providing exactly what I wanted.

    Thanks!

    Glad to hear that it is fixed!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Tagline in custom header?’ is closed to new replies.