Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Widget in Header (http://forum.bytesforall.com/showthread.php?t=7497)

MyJourneytoMillions Jun 9, 2010 09:43 AM

Widget in Header
 
I am sure I can't be the first to ask but I couldn't find the answer searching.

I am looking to add a widget spot next to my logo at http://www.myjourneytomillions.com (Just a long banner to obviously add an advertiser).

I added:


Code:
Code:

<?php bfa_widget_area('name=headewidget'); ?>
right next to %image

and I received the following error:


Parse error: syntax error, unexpected '=' in /home/myjourne/public_html/wp-content/themes/atahualpa351/functions/bfa_header_config.php(376) : eval()'d code on line 14

So any help would be appreciated

juggledad Jun 9, 2010 10:10 AM

Do not double post!

when do you get the error, front end or backend? did you add anything to the widget?

MyJourneytoMillions Jun 9, 2010 10:22 AM

I apologize for the double post.

The error came upon loading my site. I then returned to my backend to see if there was a new widget to place something/anything in, and there wasn't.

juggledad Jun 9, 2010 10:36 AM

did you remove the code, I don't see any error. I just copied teh code and pasted it in and get no error. What else do you have in the Configure Header Area?

MyJourneytoMillions Jun 9, 2010 11:49 AM

I removed the code since it messed up my header.

My whole header part reads:

Quote:

%pages
<table id="logoarea" cellpadding="0" cellspacing="0" border="0" width="100%"><tr></tr>
</table>
<div id="customrss">
<a href="http://www.myjourneytomillions.com/feed/" rel="nofollow"><img src="http://www.myjourneytomillions.com/insiderss.png"/></a>


</div>
<div id="customtwitter">
<a href="http://www.twitter.com/mjtm" rel="nofollow"><img src="http://www.myjourneytomillions.com/twitter64x64.png"/></a>


</div>
%image
%bar1
%cats

And I put the above code right afer %image

juggledad Jun 9, 2010 02:08 PM

I would suggest try again. I put your code in and get no error. It may have been a non-printable character causing an issue

MyJourneytoMillions Jun 9, 2010 03:06 PM

Man do I hate feeling stupid! But I just re-did it and it worked, no error no problems.

One last question - How do I put it to the side of the image? Not underneath?

Do I have to use div? If so would have to be an absolute sort of like how I have my breakthrough social icons?

Wimbledon Jun 9, 2010 06:02 PM

Try placing a CSS insert (Atahualpa Theme Options > CSS Insert) to move it to the side.

Something like:

div#headerwidget.bfa_widget_area{
margin-left: 500px;
margin-bottom: 70px;
}

Try playing with the numbers and + or - to achieve the look you like.

MyJourneytoMillions Jun 9, 2010 07:19 PM

Thanks Wimbledon and Juggledad - any idea why its on the next line? or looks like it is under the logo

Wimbledon Jun 9, 2010 08:45 PM

Play with margin-bottom and/or margin-top to move it up.

MyJourneytoMillions Jun 9, 2010 10:34 PM

I had to move the code in front of the %image and it showed up next to it, but the ad is not clickable (regardless if I make the image clickable or not through ATA options)

Any thoughts?

Evan
http://www.myjourneytomillions.com - if you want to see lol

juggledad Jun 10, 2010 04:20 AM

items on the page are like transparent sheets of paper and the one on top is the one that the mouse hover works on so you have to move the AD higher in the pile. To do this you use the 'z-index' CSS command, so add 'z-index:5;' to your CSS Insert


All times are GMT -6. The time now is 07:12 PM.

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