Jump to content
Sign in to follow this  
bsaul

How to show the site title in front of the header

Recommended Posts

bsaul    1
bsaul

I've followed the steps from here - adding the PageLines Customize plugin, setting that up to show the Site Title and Tagline, but cannot then work out how to get it to show in the header area. The code added is

add_action( 'pagelines_inside_bottom_branding', 'header_text' ); function header_text() { $site_title = sprintf( '
%s
', get_bloginfo('description')); echo apply_filters('pagelines_site_title', $site_title, $location); }
What am I doing wrong? Appreciate any guidance... Thanks Babs

Share this post


Link to post
Share on other sites
Simon    247
Simon
[code] add_action( 'pagelines_inside_bottom_branding', 'header_text' ); function header_text() { printf( '
%s
', get_bloginfo('description') ); }[/code] keep it simple ;)

Share this post


Link to post
Share on other sites
bsaul    1
bsaul
Thank you, Simon But how do I then get it to show on the header? What is the magic CSS bit (I do keep trying different options but this is defeating me).

Share this post


Link to post
Share on other sites
WebWerx    0
WebWerx
@bsaul: How are you adding the hook @pross mentions (above)? There are two bits here. Adding the hook into the theme functions. Then the CSS to style it.

Share this post


Link to post
Share on other sites
bsaul    1
bsaul
Hi WebWerx I added the hook to the functions.php in the pagelines-customize plugin. Babs

Share this post


Link to post
Share on other sites
WebWerx    0
WebWerx
@bsaul: assuming the code is solid (Sorry @pross ;-) ) the Site Title and Tagline should be appearing where you placed the hook. I have CC'd Simon on this as he is a PHP Ninja - and I am not.

Share this post


Link to post
Share on other sites
bsaul    1
bsaul
For now I've cheated and added the tag to the image. Would like to work out what I'm not doing with the css though. Thanks for your help, @WebWerx

Share this post


Link to post
Share on other sites
bsaul    1
bsaul
Is it perhaps not possible to do what I want? Can understand if not but was sure it could be done...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×