inherit
251046
0
Apr 23, 2024 11:41:02 GMT -8
reckoner
8
December 2017
reckoner
|
Post by reckoner on Jan 2, 2018 12:40:21 GMT -8
I was also looking to resolve an issue i have come across while attempting to move the welcome header underneath the ad. the ad right now is between the Dynamically Tabbed Table plugin and the header, but when i add the code that is supposed to fix it (see code below) into my Global Header it completely removes everything: tabbed table, banner, and ad. here is before and after the code is added to Global Header. Please note the images are the board scrolled all the way to the top. any assistance is appreciated. ( link to the site: in-flore.proboards.com/ ) instructions to use this code found here<script>
$(function(){
var ad = $("#ad1");
var elements = $("#wrapper header, #wrapper a.recent-threads-button, #wrapper #navigation-tree");
if(ad && elements.length){
elements.insertAfter(ad);
}
});
</script>
|
|
#eb7100
33409
0
1
Apr 14, 2024 15:59:10 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Jan 2, 2018 16:02:30 GMT -8
Hi, reckoner. This is because you have the $[header] variable located within the <header> block on line 51. The code is trying to move the header under an element that exists inside of itself which it can't do. If you move the $[header] variable back to its original position (on a blank line before the <div id="content" role="main"> line) the code should work.
|
|
inherit
251046
0
Apr 23, 2024 11:41:02 GMT -8
reckoner
8
December 2017
reckoner
|
Post by reckoner on Jan 3, 2018 8:36:07 GMT -8
That worked! but is there a way to put it even above the board wrapper? both codes are in place now but the wrapper is stretched to accommodate the ad.
|
|
#eb7100
33409
0
1
Apr 14, 2024 15:59:10 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Jan 3, 2018 8:47:08 GMT -8
This wouldn't be possible as it would have to involve moving the ad itself.
The reason the code moves the objects around the ad instead of moving the ad itself is because movement of the actual ad is not allowed.
|
|
inherit
251046
0
Apr 23, 2024 11:41:02 GMT -8
reckoner
8
December 2017
reckoner
|
Post by reckoner on Jan 3, 2018 10:04:51 GMT -8
ok, that kinda stinks but thanks so much for your help!
|
|