Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   add page/post title to header site title. (http://forum.bytesforall.com/showthread.php?t=15717)

aehageman Oct 20, 2011 02:19 PM

add page/post title to header site title.
 
I would like to add the page/post title to the header area.
example

currently this page

http://brooklynpeddler.com/4-tone-whistle

has this in the header
"
BrooklynPeddler.com

Fine railroad novelty items and other fun things including the best wooden train whistle made
"

I would like it to read
"
BrooklynPeddler.com 4 Tone Whistle

Fine railroad novelty items and other fun things including the best wooden train whistle made
"


4 Tone Whistle would be where the post/page title is replaced..

juggledad Oct 20, 2011 03:43 PM

BrooklynPeddler.com is the blog title. If you want to replace that then you are going have to edit the php code in the module bfa_header_config.php

If you only want it of that page, you will have to add some logic to test fo the page and remember to keep good notes because the next time you upgrade the theme, you will have to do it again.

aehageman Oct 20, 2011 05:02 PM

I do not want to change the blog title.
I want to add the post title/page title to the right of the blog title.

The post/page title is called on every post/page. It is put in the title tag, it appears at the top of the main content area, and I would like it to also appear to the right or underneath of the blog title.


You can see now that I put in the word "fred" where I want the post/page title.

What code do I need to call the post/page title?

http://brooklynpeddler.com/bandana-paint-kit
The post title is 'Engineer Bandana Paint Kit'
It is also in the page title.
What code put it there?

I know it is simple, I just can not find how it is put in the title tag or in the main content area..

thanks.

juggledad Oct 20, 2011 05:23 PM

Go read my last post. You will have to edit the theme code.

aehageman Oct 20, 2011 05:49 PM

I read the last post.. I know where the code goes and how to put it there, just not what it is...

It should be pretty simple to cut and paste the code that creates/prints the title on the posts and pages, if I could find it.

What creates this code? specifically calling the post/page title.
<title>Engineer Bandana Paint Kit | BrooklynPeddler.com</title>

What creates this code?
<div class="post-headline"><h1>Engineer Bandana Paint Kit</h1></div>


If I knew this code, I could add that code to this where it says 'fred'!!?!?

. $homeURL . '/">'; bloginfo('name'); echo '</a>fred</h' . $bfa_ata['h_blogtitle'] . '>fred';


I have been reading and reading and can not figure it out.

Everything I have attempted so far has broken the site...

aehageman Oct 20, 2011 05:59 PM

thank you for the help..


wp_title( '|', true, 'right' );



the complete code..

Atahualpa: bfa_header_config.php


found this
echo '<h' . $bfa_ata['h_blogtitle'] . ' class="blogtitle"><a href="'
. $homeURL . '/">'; bloginfo('name'); echo '</a></h' . $bfa_ata['h_blogtitle'] . '>';
}


changed it to this..
echo '<h' . $bfa_ata['h_blogtitle'] . ' class="blogtitle"><a href="'
. $homeURL . '/">'; bloginfo('name'); echo '</a>' . '<br />'
. wp_title( '', false, 'left' ); echo '</h' . $bfa_ata['h_blogtitle'] . '>';
}

juggledad Oct 21, 2011 04:16 AM

fyi there are two places to change it - one if you use the %logo and one place if you overlay the blog title on the header image.


All times are GMT -6. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.