Content into Header Bar %bar1
Great Theme ! - donation sent
How do I place content into the %bar1 thing I'd particularly like to place the Blog Tagline in there. Or I could just hide the Blog Tagline and place some text into %bar1 but I don't know how to put it there. I'm quite happy hacking into the index.php if that's what it takes |
Thank you for the donation.
You would have to edit functions/bfa_header_config.php, line 181 or line 187 PHP Code:
HTML Code:
To put PHP code into a horizontal bar, use PHP Code:
Finally add %bar1 or %bar2 at Theme Options -> Header -> Configure Header Area |
I've been able to put a Javascript ad banner inside the bar1 area.
Code:
{// Horizontal bar 1 Here is the index page: http://larchmontgazette.com/wp27/. Here is the obituaries page where I need a different banner. You can see where I put it down in the body, but I would rather have it up where the other banner is. http://larchmontgazette.com/wp27/?page_id=858 |
You could use something like this:
PHP Code:
|
Thank you. I finally got it working today, in the logo bar, using code to modify bfa_header_config.php you gave somebody else:
Code:
// END of title/description Could I use the "else if" code you mention here in order to make a different banner appear on category pages that are sponsored exclusively by one company? |
Sure, you'd use is_category(), is_category('9'), is_category('category-name') or is_category('Category Name') then
|
Oh, Flynn, you assume I know more PHP than I do! Could you give me the full code for this? I tried it and my page disappeared. I think I had ' or ; in the wrong places, but I can't seem to figure it out.
I had this: Code:
// END of title/description |
You'd need to add some PHP code to either display something or do something with the page specific HTML code. In bfa_header_config.php all HTML code is being collected inside of variables (which represent various area of the header, i.e. $logo_area):
PHP Code:
The last else { ... } in the code above will be used if none of the conditions above match. So you'd put the default HTML code there. |
Hello!
I am brand new to WP and rather self-taught/functionally illiterate in web coding! But thanks to this thread I was able to put iframe code for a digital clock in the right side of the logo area/header space! Now I am trying to get the clock to align vertically to the right of my logo. Here is my page: http://www.grainanalyst.com/live-grain-commentary/ And here is the snippet of code I came up with for the bfa_header_config.php: $logo_area .= get_bloginfo('template_directory') . '/images/' . $bfa_ata_logo . '" alt="' . get_bloginfo('name'); } $logo_area .= '" /><iframe src="http://free.timeanddate.com/clock/i1gxxi9j/n64/fn2/fs24/ahr/tt0/tw1/tm1/td1/th2/tb2" frameborder="0" width="418" height="35" align="right"></iframe> </a></td>'; This page is in draft status. I am urging my boss to donate for this great template as this will be a commercial site. THANKS!!! |
Made some adjustments I'm happy with. No worries, thanks!
Dagny in Chicago |
Quote:
I love this theme and I have been learning very quickly how to do things from the excellent support you have on here. I have run into a few problem however and would be happy to donote if these can be resolved. 1. I have added this code ob_start(); wp_loginout(); $loginlink = ob_get_contents(); ob_end_clean(); $page_menu_bar .= '<li>' . $loginlink . '</li>' . "\n"; ...so my login is in my Page Menu Bar but I would love it to go in the Horizontal Menu Bar above it where I already have some HTML links inserted. I would also like a register link their too. Can this be done? 2. I would love to leave the Page Menu Bar background white but have the tabs static and hover colours different like blue? I cannot see where this can be modified. 3. Is it possible to put rounded or curved tabs on the page manu bar? I have provided an image HERE with 1, 2 & 3 referenced in it for convenience and would appreciate any help you can offer? Many thanks in advance. SoarH |
Can I do this a similar way in order to display the tagline in bar1 one instead of besides the logo?
|
In place of bar one just use a div with the text you want in it. Below would give you the text in an area with a red background. Just use this in place of %bar1.
HTML Code:
<div style="background:red;"> This is the tagline</div> |
Used
HTML Code:
<div style="background:#003471;font-size: 15px;font-weight: normal;line-height: 18px; color: #B5C0CD;"> <font face="Verdana, Arial, Helvetica, sans-serif">Multimedia, Take a look newlayout.tribe-online.de thanks! |
Not exactly sure how you want it to look but you can just use CSS to position wherever you like.
|
All times are GMT -6. The time now is 05:28 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.