-
can't place adsense link unit in the header menu
I'm editing the header and trying to insert 468x15 link unit on the right of the header menu
here is where i place the code:
<!-- Main Nav -->
<?php if (!$primaryNav['display']) { ?>
<div class="im-nav"><a href="<?php bloginfo('url') ?>/wp-admin/admin.php?page=functions.php">Please configure in Socrates Admin Panel</a></div><!-- /close im-nav -->
<?php } else if ($primaryNav['display'] == 'block' ){ ?>
<div class="im-nav">
<?php
socrates_generate_nav_links($primaryNav, '');
?>
ADSENSE CODE HERE
</div> <!-- /close im-nav -->
i tried just the code, wrapping it in a div, with top:10px or other paddings, float left and right, can't make it properly! Well i'm not a CSS expert either.
I just want it on the right of the menu centered from the top and bottom at the same level as the menu links. Can someone help me?
-
-
just sent you a PM, thank you!
-
Just sent fix.. but want to mention that I never even thought to do this, but it's a no brainer to populate the primary navbar.
Appearance > Editor > header.php
Look for this and add the bolded text...
<div class="im-nav">
<?php
socrates_generate_nav_links($primaryNav, '');
?>
Adsense Link Unit </div>
Just be aware if you have a few nav links there it could cause a problem with search bar.. if so, you can remove the search bar and use search widget
-
that's exactly where i'm placing it, as pasted in the first post 
the thing is it either overlaps the menu or goes below.....
-
okay... I assumed it would work like on the left but it did not..
Try this..
Add
.linkunit {margin: -3px 0px 2px 100px;}
To bottom of style.css
then in header user
<div class="linkunit">Ad unit code </div>
Adjust 100px for distance from links.
-
it worked out perfectly, thank you so much!
-
actually now i found that it goes 100px from the left side, i would like it to go 100px from the last link, that way i wont have to set it manually for every site and reset it after adding a page
-
Increase the 100px until you think it works the way you want it to.
-
as i said that's not good, cause needs to be reset for every site, and after every new page.
anyway, i found another way, thank you....
Similar Threads
-
By chrischiang in forum Graphics and Design
Replies: 3
Last Post: 09-03-2010, 10:18 AM
-
By propertyman in forum Official Support
Replies: 5
Last Post: 07-09-2010, 04:40 AM
-
By The Exposure Strategist™ in forum Official Support
Replies: 1
Last Post: 07-05-2010, 08:45 PM
-
By beards in forum Official Support
Replies: 2
Last Post: 07-04-2010, 08:58 PM
-
By Mark in forum Official Support
Replies: 2
Last Post: 06-17-2010, 12:42 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|