• Hi!

    I’m enjoying your addon, but struggling to show tagline either below or beside the logo title.

    I’m not using top menu header option, so it is not doable from the theme, but I read in another post that you can do it through child theme.

    Can you please help me with how?

    Thank you so much!

    • This topic was modified 6 years, 2 months ago by aymant.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author oceanwp

    (@oceanwp)

    Hello, you want to display the tagline in another place than the top header?

    Thread Starter aymant

    (@aymant)

    Hi,
    Thanks for the great theme 🙂

    To explain exactly what I want to do, check this image.

    View post on imgur.com

    That is the location I want the tagline to appear.
    I also want to make that blue space a little bit larger, but not sure how.

    I’m using minimalist style.

    Theme Author oceanwp

    (@oceanwp)

    With the minimal header style, you will need to do custom work via your child theme.

    To increase your header height, it is via the Header > General section of the customizer.

    Thread Starter aymant

    (@aymant)

    I already used the template child theme you have on your site.

    What is the custom work I need to do to have tagline then?

    Please share with me 🙂 Thank you.

    Theme Author oceanwp

    (@oceanwp)

    You can try something like this in the functions.php file of your child theme:

    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 aymant

    (@aymant)

    I did, but it still didn’t appear (the site is live).

    Theme Author oceanwp

    (@oceanwp)

    It is because you don’t use any logo, I think in your case it would be better to directly use a logo with a tagline so no need to add PHP and CSS codes.

    Thread Starter aymant

    (@aymant)

    I thought tagline should appear as “text”, rather than image.

    Yes I’m not using logo right now, but even if I use logo it will be an image to the left, and cannot have it under the title.

    Theme Author oceanwp

    (@oceanwp)

    In any case it will require CSS and maybe it will look weird, so it would be better in a logo.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to show tagline below or beside logo in header?’ is closed to new replies.