Community Forums › Forums › Archived Forums › Design Tips and Tricks › How do I get banner ad at the top of my blog?
Tagged: banner ad, Luscious, New Widget Area
- This topic has 10 replies, 5 voices, and was last updated 11 years, 11 months ago by
kathiemt.
-
AuthorPosts
-
January 3, 2013 at 9:38 pm #9364
LauraJane
MemberI'm using the Luscious theme, and I'm wanting to place a banner ad below my header but above my top post title. There's not a widgeted area there, so can I create one myself? If so, how? I'm assuming once I know how to do that I could use the same process to put a banner ad at the very top above the header like I've seen on many blogs.
January 3, 2013 at 9:52 pm #9369Susan
ModeratorJanuary 3, 2013 at 9:55 pm #9370buddy_boy8403
ParticipantNick The Geek has a great tutorial on how to create sidebars on his site. You just need to make sure you are referencing the correct Genesis Hook when creating the new sidebar in your functions.php file. Luckily, StudioPress has created a hook reference for you!
I believe the hook you want is: genesis_after_header
Give this a shot yourself using the reference materials and let me know if you can't get it.
Also, for future reference, a link to you site is always helpful!
January 4, 2013 at 6:57 pm #9634LauraJane
MemberI used the Simple Hooks plugin and added this code to the Genesis_before_loop hook:
<div align="center">
<a href="http://jvzoo.com/c/40596/18792" target="_blank"><img src="http://crystalpaine.com/wp-content/uploads/2012/10/21-days-disclipined-life-728x90.jpg" width="620" alt="21 Days to a More Disciplined Life" /></a>
</div>Fortunately it pretty much worked. I'd like more space between the image and the post title. Is there a way to add some padding or margin using the plug in/html code or do I need to add an actual widget area there in order to use CSS to accomplish that?
My site: http://www.SuperSweetLife.com
January 4, 2013 at 7:04 pm #9636LauraJane
MemberI used the Simple Hooks plugin and added html code to the Genesis_before_loop hook.
Fortunately it pretty much worked. I'd like more space between the image and the post title. Is there a way to add some padding or margin using the plug in/html code or do I need to add an actual widget area there in order to use CSS to accomplish that?
Here's my site: http://www.SuperSweetLife.com
January 4, 2013 at 10:05 pm #9688buddy_boy8403
ParticipantDid you pull in a text widget and paste the ad code in the widget area? If so, try encasing your ad code in this:
<div class="below-header-ad-banner">
..... ad code here.....
</div>Then add the following to the bottom of you theme's style.css file:
.below-header-ad-banner .widget-wrap {
padding: 10px;
}January 5, 2013 at 3:44 am #9701Brad Dalton
ParticipantYou can add Vertical and Horizontal spacing to images using the Advanced Image Settings
May 13, 2013 at 5:00 pm #40734kathiemt
ParticipantI'm looking to do the same thing but find that the luscious theme doesn't have a home.php file to put the second part to hook the featured widget as listed at http://www.briangardner.com/home-widget-area-eleven40/
Trying to figure out what else I can do. Unfortunately just adding the first part made the site go white, invisible, even after removing the code.
The site I'm trying to do this to is http://redlandcityliving.com/
Kathie Thomas
May 13, 2013 at 6:07 pm #40752Brad Dalton
ParticipantI just updated a post on this.
Really not a great idea to edit template files when you can use custom functions.
You can add a custom function in your child themes functions.php file.
1. You can create a new widget
2. Or hook HTML in directly
Use any hook position
Please copy the code using the view raw link and paste it in child themes functions file using a code editor like Notepad++.
May 13, 2013 at 6:42 pm #40767Brad Dalton
ParticipantForgot to add, change the 007 to blog or the name you use for your blog page.
Or you can add the page.i.d for your blog where 007 is.
May 13, 2013 at 8:16 pm #40805kathiemt
Participantok, thanks, will give that a try. Much appreciated.
Kathie Thomas
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.