Arcane
Junior Member
Posts: 252
inherit
162340
0
Aug 17, 2015 19:59:54 GMT -8
Arcane
252
January 2011
ase
|
Post by Arcane on Jul 31, 2015 13:06:09 GMT -8
Forum URL: redforestinstitute.boards.net/I was hoping to move the ad above my forum's banner, but below the nav tree. However, the plugin in the library doesn't seem to work because of the intense reformatting of my site with its current theme. I currently do have the plugin (Welcome Header Below Ad by Peter) activated, though if you want me to deactivate, I'd be happy to do so. Also more than willing to do a little coding in the templates. Tried messing with it myself, but couldn't get any results so I quit before I messed anything up hehe Thank you for any and all help! (And if this is in the wrong board, I'm very sorry. Wasn't entirely sure if it should be in the plugin board or coding board, if either of them, so I stuck it here.)
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Jul 31, 2015 14:35:38 GMT -8
Hey Arcane, Since this issue does involve some re-coding of either your templates or the code that re-arranges the elements to position the ads, I've moved this over to the coding & development category for more in-depth help.
|
|
Arcane
Junior Member
Posts: 252
inherit
162340
0
Aug 17, 2015 19:59:54 GMT -8
Arcane
252
January 2011
ase
|
Post by Arcane on Aug 1, 2015 5:04:36 GMT -8
Okay, thanks and sorry for putting it in the wrong spot!
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Aug 1, 2015 16:16:04 GMT -8
It's all good. Sorry for the delay in response. You should be able to achieve this effect by going into your |layout templates -- from there, click into the Forum Wrapper template, and find the $[header] variable, which is chillin' on line 64 of your template. Take that, and move it just above the opening <div id="wrapper">. The place you've got it in now produces the top header ad inside our main #wrapper element, and we want it out. After doing that, I think the plugin will work. If not, just go to Admin > Structure > Headers & Footers > Global Header & Footer and drop this in the Header box: <script> $(document).ready(function() { $('header').insertAfter('#top-ad-banner') }); </script>
|
|
Arcane
Junior Member
Posts: 252
inherit
162340
0
Aug 17, 2015 19:59:54 GMT -8
Arcane
252
January 2011
ase
|
Post by Arcane on Aug 2, 2015 10:19:30 GMT -8
Hm... well, the ad's definitely over the banner, but it's above the nav menu and tree, now, too. Any way to maybe get the advert below the nav menu and nav tree, but still above the banner?
|
|
inherit
The Great Cinnamon Roll
191518
0
Oct 19, 2016 22:17:44 GMT -8
David Clark
Care for some tai chi with your chai tea?
17,602
March 2013
davidlinc1
|
Post by David Clark on Aug 2, 2015 10:46:36 GMT -8
Ah, sorry, I misunderstood.
Try removing the code and plugin, and then move the $[header] variable to just above this code in the Forum Wrapper template of the |layout templates -
<div id="banner-container" role="banner"> <h2 id="banner"> $[forum.title] </h2> </div>
|
|
Arcane
Junior Member
Posts: 252
inherit
162340
0
Aug 17, 2015 19:59:54 GMT -8
Arcane
252
January 2011
ase
|
Post by Arcane on Aug 5, 2015 14:58:11 GMT -8
Sorry for the late response, internet connection's been shoddy. Thank you so much, it works like a charm!
|
|