Jump to content


Photo
- - - - -

How to show the site title in front of the header


  • Please log in to reply
7 replies to this topic

#1 bsaul

bsaul

    Advanced Member

  • Members

  • 76 posts
  • LocationKent, UK
  • Country: Country Flag

Posted 27 March 2012 - 02:23 PM

I've followed the steps from

Please Login or Register to see this Hidden Content

- 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

#2 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 27 March 2012 - 02:26 PM

Please Login or Register to see this Hidden Content


keep it simple ;)

#3 bsaul

bsaul

    Advanced Member

  • Members

  • 76 posts
  • LocationKent, UK
  • Country: Country Flag

Posted 27 March 2012 - 07:36 PM

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).

#4 WebWerx

WebWerx

    Advocate

  • Members
  • 546 posts
  • LocationCanada
  • Framework Version:2.2
  • Country: Country Flag

Posted 27 March 2012 - 07:44 PM

@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.

#5 bsaul

bsaul

    Advanced Member

  • Members

  • 76 posts
  • LocationKent, UK
  • Country: Country Flag

Posted 27 March 2012 - 08:33 PM

Hi WebWerx I added the hook to the functions.php in the pagelines-customize plugin. Babs

#6 WebWerx

WebWerx

    Advocate

  • Members
  • 546 posts
  • LocationCanada
  • Framework Version:2.2
  • Country: Country Flag

Posted 27 March 2012 - 08:52 PM

@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.

#7 bsaul

bsaul

    Advanced Member

  • Members

  • 76 posts
  • LocationKent, UK
  • Country: Country Flag

Posted 27 March 2012 - 09:00 PM

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

#8 bsaul

bsaul

    Advanced Member

  • Members

  • 76 posts
  • LocationKent, UK
  • Country: Country Flag

Posted 29 March 2012 - 02:02 PM

Is it perhaps not possible to do what I want? Can understand if not but was sure it could be done...