Jump to content


Photo
- - - - -

Banner-Ad-Plugin In Header Of My Page


  • Please log in to reply
11 replies to this topic

#1 fkpress

fkpress

    Advanced Member

  • Members

  • 41 posts
  • LocationErfurt, Germany

Posted 17 December 2012 - 01:30 PM

hi there,

 

i am trying to get simpleadsplugin for my page. it works fine as a widget. now i am trying to place a rotation-place next to my logo on www.puffbohne.de. 

 

i already changed the standard view there by changes to the customize plugin you provide with pagelines. 

 

 

Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content

now the author of the simple-ads-plugin recommends a widgetized header - but pagelines doesn't have this, does it? or can i change it to use widgets in the header?

 

if there is not a widgetized area, i should use: 

Please Login or Register to see this Hidden Content

but where and how do i place this customization? 

 

any hints? 

 

conclusion: i want to use a banner-rotation next to my page logo. how can i realize this?

 

frank



#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 17 December 2012 - 03:28 PM

You can add a widget to your header by adding the universal sidebar section to it in Drag & Drop. However, the universal sidebar can only be placed below the logo. CSS can be used to reposition it so that it's moved up next to the logo, though:

Please Login or Register to see this Hidden Content



#3 fkpress

fkpress

    Advanced Member

  • Members

  • 41 posts
  • LocationErfurt, Germany

Posted 17 December 2012 - 05:04 PM

the universal sidebar is completely used by my page... :-(



#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 17 December 2012 - 05:20 PM

Ok, would it be possible to use a different sidebar on your page so that you can use the universal sidebar in the header?



#5 fkpress

fkpress

    Advanced Member

  • Members

  • 41 posts
  • LocationErfurt, Germany

Posted 17 December 2012 - 08:35 PM

no other possibility? so i would change it. and then? what is then to do?



#6 fkpress

fkpress

    Advanced Member

  • Members

  • 41 posts
  • LocationErfurt, Germany

Posted 17 December 2012 - 10:32 PM

i changed it - universal is empty now and in header area. what now?



#7 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 18 December 2012 - 12:26 AM

Hi,

 

There are several, better ways to do this, and I believe you were on the right track to start.

 

I am presuming that the facebook.com ad you were trying to load was 'static' in the sense of not rotating as you desired.

 

Personally, I used this hook:

Please Login or Register to see this Hidden Content

I applied this CSS to make it align right and keep its link:

Please Login or Register to see this Hidden Content

Of course, Google, in this case, is providing the rotation.

 

If it were not, I'd use

Please Login or Register to see this Hidden Content

software, installed outside the WordPress installation (such as a folder).  In OpenX, I'd place all the ad codes, then use OpenX's code in that same hook above.

 

Yours seems to be written all in one line and commented out, which would stop it from working.  You're also missing the add action bit.

 

If it must be widgetized, then you'll have to apply a text widget to the universal sidebar and implement a unique class as you appear to be in your FB code.



#8 fkpress

fkpress

    Advanced Member

  • Members

  • 41 posts
  • LocationErfurt, Germany

Posted 18 December 2012 - 10:49 AM

but how should be the code i have to use. i am not using google-ads, no openX and i am no professional. :-(



#9 Danny

Danny

    Is Awesome!

  • Moderators
  • 16342 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 18 December 2012 - 10:56 AM

If you want to insert content into your site and have used the Universal Sidebar, Contentbox etc.. or you wish to insert content into a specific place, then you're going to need to use a hook.

 

You can use Robs code as an example, replacing the google ads code for your banner code.

 

If you're unsure or not comfortable in implementing this, then I recommend you contact one of our Pros, who will be happy to assist you.

 

Please Login or Register to see this Hidden Content



#10 fkpress

fkpress

    Advanced Member

  • Members

  • 41 posts
  • LocationErfurt, Germany

Posted 18 December 2012 - 08:11 PM

and is someone out there to tell me, how i get the universal sidebar, located now in header area, next to the logo? thanks again!



#11 batman

batman

    Bat Learning

  • Members

  • 2111 posts
  • LocationBuenos Aires, Argentina
  • Framework Version:DMS
  • Country: Country Flag

Posted 18 December 2012 - 09:31 PM

Hi

Go to Pagelines > Drag and Drop > Header

 

and drag Universal SliderBar before the Branding in the Active Sections

 

Captura%2520de%2520pantalla%25202012-12-



#12 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 18 December 2012 - 09:55 PM

Batman's instructions are as always, correct.

 

The reason for my recommendation is that the universal sidebar will not be side-by-side with the branding logo.  Instead, it will be either above or below.  As a result, your ad will not appear next to the logo. 

 

As Danny pointed out, removing my Google code would be best.

 

Like this:

Please Login or Register to see this Hidden Content

Just replace "Your Code Goes Here" with your actual ad code.