Jump to content
pockettactics

How can I decrease the vertical gap between my header and banner?

Recommended Posts

pockettactics    0
pockettactics

Hi guys- I'm running some banner ads on my site tomorrow for the first time, and I've set up a banner module in my Pagelines template above the content at the top of my blog section. If you look at my site, you'll see that the "Pocket Tactics is sponsored by" text in my banner is quite a distance away from the site header/nav bar. What do I need to edit to tighten up this gap? I tried adjusting the banner text down but I'm not sure that's the right way to go about it. Sorry if this is a perfectly obvious answer - I'm still a bit new at this. Thanks!

Share this post


Link to post
Share on other sites
pockettactics    0
pockettactics

I think part of my problem is that the "banner" element in pagelines is leaving room for a post title, which I don't actually want here. Is there a way to remove the post title from this element? Or is there a better way of getting this 728*90 leaderboard onto my site? I originally wanted to put it in my site header to the right of my logo but I couldn't quite figure that out. Any suggestions welcome.

Share this post


Link to post
Share on other sites
batman    389
batman

Hi @pockettactics I??m a newbie and I??m not sure but you can try add to CSS rules

.banner_container .banner-area {padding: 0px 0;}
for the distance away from the site header/nav bar and
.banner-title {display:none;}

for post title I repeat.... I??m not sure


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
Rob    547
Rob

In addition to trying Batman's suggestions, try adjusting these down from 15px.

#banners .content-pad {
	    padding-bottom: 15px;
	    padding-top: 15px;
	}


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
pockettactics    0
pockettactics

Those worked great, thanks both!

Share this post


Link to post
Share on other sites
pockettactics    0
pockettactics

@rangelone - Is there anything else I can do to eliminate some of that whitespace? The banner is live on PocketTactics.com now and there's just a lot of wasted space that I can't figure out how to trim.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi, Where is this banner located, are you referring to the space near and around the text "Pocket Tactics is sponsored by:" ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
pockettactics    0
pockettactics

Hi Danny - yes, that's the space I'm referring to. This is what I've added to my custom code, but it doesn't seem to have any effect.

body{ font-size: 16px } .banner-title {display:none;} .banner_container .banner-area { padding: 2px 0; } .banner-title { margin-bottom: 1px; } .banner_title.wicon { background-position: 0 4px; background-repeat: no-repeat; display: inline; padding: 0px; } .banner_container .banner-text-pad { padding: 1px 3px; } #banners .content-pad { padding-bottom: 1px; padding-top: 1px; } #sidebar1{font-size: 14px};

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi, Try adding this:

#banner p { margin:0; }


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
pockettactics    0
pockettactics

Hi Danny, Thanks for that. I added

#banner p { margin:0; }

but it doesn't seem to have had much effect. I cleared my browser cache and everything. Any other ideas?

Share this post


Link to post
Share on other sites
pockettactics    0
pockettactics

I did those one at a time to see the effects and those both helped quite a bit. Thanks very much, @Danny!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

No problem, happy to help!


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
cookingruthie11    0
cookingruthie11

OK guys... plainly Pockettactics is more experienced than I am... I am trying to put a banner ad from Technorati in the same location at www.whatscookingwithruthie.com to the right of the logo and don't even know where to put the code. I have been screwing around with it and managed to put it in the custom code header section and placed the banner above the top navbar which is NOT where I want it... I guess I just do not understand how to set up the banner module... Any pointers would be appreciated.

Drew

Share this post


Link to post
Share on other sites
Rob    547
Rob

Drew, kindly open a new topic for your question as this is considered hijacking. We'll be happy to help there.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Rob    547
Rob

The topic was marked as resolved.


Former PageLines Moderator, Food Expert and Raconteur

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


  • Similar Content

    • janpeeters
      By janpeeters+
      Over the last month I had extensive communications with the developer of the (premium) Anything Boxes section (in Pagelines store) (Adam Munns) and the developer of the WP Polylang Multilingual plugin (Frederic Demarle).
       
      This was because the following problem occurred:
      Anything Boxes showed all posts of two languages (Dutch and English) on the respective static frontpages for each language. It should of course have filtered posts for Dutch language on the Dutch frontpage and English on the English frontpage.
       
      The solution to this problem was simple in the end. When duplicating a page for use in another language the settings for Anything Boxes were not copied to the new page and I should have set these settings manually again on the new page. I wasn't aware of this, but it makes sense. Because of this the pages didn't know how to differentiate between posts from different languages.
       
      The dev of Polylang told me that Polylang is currently smart enough to synchronize metas like Featured images and page templates but it does not work out of the box with metas created by plugins and themes but (according to Frederic) it is rather easy to add them in the list using the filter 'pll_copy_post_metas'.
      He mentions that he is not sure that these 'PageLines Meta Settings' are stored in post meta but that would make sense according to him. He asks if the Pagelines dev team will be interested to support this feature in the future.
       
      I'm also wondering if you will consider adding Polylang translation support for manually editable strings like the 'Read more…' strings in Pagelines Settings.
       
      Well that's of course up to you but I thought to let you know to be able to take this into consideration. I also post this for other users in case they experience the same kind of trouble and are looking for an answer.
       
      Best regards,
      Jan Peeters
    • bankrollbuilder
      By bankrollbuilder
      I used a custom hook to put a banner ad in my header. It works but its not in the right position. it is centered and above my logo and I would like to float it to the right of my logo in the header. heres the link: http://shaboopie.com/shaboopie-wp/free-logos-pg1/

      thanks.

      Dan B.
    • starlit
      By starlit
      Can one have two hero sections on one page?

      I want a landing page which leads/advertises two subpages.

      Or is there another option?

      Please help.

      THANK YOU
    • hutruk
      By hutruk
      Hi!

      I am using the shortcodes for tabs, as described in the documentation.

      When I insert the following code:


      [pl_tabs][pl_tabtitlesection type="tabs"] [pl_tabtitle number="1"]Title 1[/pl_tabtitle] [pl_tabtitle number="2"]Title 2[/pl_tabtitle] [/pl_tabtitlesection] [pl_tabcontentsection] [pl_tabcontent active="yes" number="1"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [pl_tabcontent number="2"] Lorem ipsum dolor sit amet, consectetur adipiscing elit [/pl_tabcontent] [/pl_tabcontentsection] [/pl_tabs]

      I get a strange output (in the attachment).

      Any ideas?

      Thanks in advance!

    • MooiWeb
      By MooiWeb
      Hello,

      I would like to align my qtranslate with my breadcrumb so that the flags are on the same hight.
      I'm aware of putting a code in the custom css and tryed severall codes from your site but for now, no succes

      The site i'm working on is http://nieuw.vazdias.nl

      Thx,
      Edwin



×