Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Widget in Header


  #1  
Old Jun 9, 2010, 09:43 AM
MyJourneytoMillions
 
46 posts · Sep 2009
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
  #2  
Old Jun 9, 2010, 10:10 AM
juggledad's Avatar
juggledad
 
23,626 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Do not double post!

when do you get the error, front end or backend? did you add anything to the widget?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 9, 2010, 10:22 AM
MyJourneytoMillions
 
46 posts · Sep 2009
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.
  #4  
Old Jun 9, 2010, 10:36 AM
juggledad's Avatar
juggledad
 
23,626 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jun 9, 2010, 11:49 AM
MyJourneytoMillions
 
46 posts · Sep 2009
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
  #6  
Old Jun 9, 2010, 02:08 PM
juggledad's Avatar
juggledad
 
23,626 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jun 9, 2010, 03:06 PM
MyJourneytoMillions
 
46 posts · Sep 2009
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?
  #8  
Old Jun 9, 2010, 06:02 PM
Wimbledon's Avatar
Wimbledon
 
320 posts · Apr 2009
[VA & AZ], USA
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.
  #9  
Old Jun 9, 2010, 07:19 PM
MyJourneytoMillions
 
46 posts · Sep 2009
Thanks Wimbledon and Juggledad - any idea why its on the next line? or looks like it is under the logo
  #10  
Old Jun 9, 2010, 08:45 PM
Wimbledon's Avatar
Wimbledon
 
320 posts · Apr 2009
[VA & AZ], USA
Play with margin-bottom and/or margin-top to move it up.
  #11  
Old Jun 9, 2010, 10:34 PM
MyJourneytoMillions
 
46 posts · Sep 2009
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
  #12  
Old Jun 10, 2010, 04:20 AM
juggledad's Avatar
juggledad
 
23,626 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
adsense, header, widget

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Text Widget in Header Widget Area jcooper Sidebars & Widgets 4 Mar 23, 2010 04:12 PM
I want a new widget to the right of my header image birdieluv Header configuration & styling 1 Nov 16, 2009 06:59 AM
[SOLVED] Can no longer set height of header image after adding header widget tfs Header configuration & styling 7 Oct 15, 2009 01:50 PM
New widget area in header paulae Sidebars & Widgets 10 Jul 3, 2009 01:45 PM


All times are GMT -6. The time now is 02:38 AM.


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