Jump to content
Sign in to follow this  
dorin_dumitrascuta

Got my first hook working still need a little help

Recommended Posts

dorin_dumitrascuta

Hello, I managed to use my first hook today in the functions.php from base theme. Inserted some html to place a banner and guess what? Everything went well! Thanks for the very instructing videos and text resources that you put up guys. I have a small tweak to do though. As you can see here, http://thedollarmill.com the banner is not exactly styled to show very nice. So what I need is some tag or code to place it more in the middle so it looks better. I used the hook pagelines_before_branding_icons to place the banner. So I am happy with where it shows, right between social networks icons and the logo. How can I place it in the middle between those 2? I need some suggestions please.

Share this post


Link to post
Share on other sites
dorin_dumitrascuta
Well it's not there per se but the area highlighted in a different color is the actual place. It will show an Ad Unit once it is activated. Like I want to make it fit before streaming the actual Ad. Should I assign a div to that html and then css it to make it center? If this is the way could you point some more detailed steps that need to be done like where should I write the code, maybe some useful resource?

Share this post


Link to post
Share on other sites
catrina
Yes, assign a DIV to it and create the CSS. The DIV code would look like this and it would be placed inside the hook (not outside of the hook): [code]
BANNER AD CODE HERE
[/code] The CSS would look like this: [code]div.adbanner {STYLING PROPERTIES HERE}[/code] I can't see where the banner will fall into place after you add the DIV, so the styling properties for centering it can be determined after the banner is added. Btw, I don't see the area highlighted in a different color. Would it be possible to add a placeholder image that is the size of the banner you plan on using?

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
dorin_dumitrascuta
Hey Catrina, you really helped me, thanks a lot! You explained it very well and I should be in the clear zone now. Will crack the code later, can't work when stoned :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×