Ik draai al een tijdje Wordpress op mijn site, en dacht vandaag eens wat kerstlichtjes te activeren op mijn site om in stemming te komen met de kerst.
Echter overruled de navbar (.nav) de xmas_lights plugin en blijft dus gezellig op de voorgrond zitten, terwijl ik die lichtjes op de voorgrond van alles wil hebben.
Onder mijn theme kan ik custom css toevoegen.
Wat er nu gebeurd is denk ik dat de navbar absolute is en dus alle overige plugins naar de achtergrond gooit.
hoe zou ik dmv van custom css de navbar achter de xmas_lights plugin kunnen gooien?


php code van xmas_lights
stukje stylesheet van mijn theme van het navigatie gedeelte
Zie mijn site op: www.oxize.nl
Echter overruled de navbar (.nav) de xmas_lights plugin en blijft dus gezellig op de voorgrond zitten, terwijl ik die lichtjes op de voorgrond van alles wil hebben.
Onder mijn theme kan ik custom css toevoegen.
Wat er nu gebeurd is denk ik dat de navbar absolute is en dus alle overige plugins naar de achtergrond gooit.
hoe zou ik dmv van custom css de navbar achter de xmas_lights plugin kunnen gooien?


php code van xmas_lights
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
| <?php
/*
Plugin Name: Xmas Lights
Plugin URI: http://graphicedit.com/blog/plugin/xmas-lights/
Description: This plugin adds Xmas Lights.
Version: 1.0.1
Author: GraphicEdit
Author URI: http://graphicedit.com/
Copyright 2011 GraphicEdit (email : contact@graphicedit.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
function xmas_lights() {
?>
<!-- xmas_lights [ start ] -->
<script type="text/javascript">
document.write("<div id='lights' style='position:absolute;width:956px;height:180px;top:-50px;background:url(<?php echo plugins_url() . '/xmas-lights/'; ?>light.png) no-repeat;left:50%;margin-left:-478px'></div>")
setInterval( "xmasLights();", 1000 );
var lights = "active";
function xmasLights(){
var img = document.getElementById('lights');
if(lights == "active"){
img.style.backgroundPosition = "0 -180px";
lights = "inactive";
}else{
img.style.backgroundPosition = "";
lights = "active";
}
}
</script>
<!-- xmas_lights [ end ] -->
<?php
}
//////////////////
/////////////////
add_action('wp_footer','xmas_lights');
?> |
stukje stylesheet van mijn theme van het navigatie gedeelte
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| /*------------------------------------------------*/
/*------------------[NAVIGATION]------------------*/
/*------------------------------------------------*/
.logowrap { float: left; width: 950px; margin-top: 80px; }
.logowrap ul { float: left; margin: 26px 0px 0px 40px; padding: 0px; }
.logowrap ul li { float: left; display: block; margin-right: 10px; }
.logowrap ul li a:link, .logowrap ul li a:visited { padding: 5px 10px; color: #fff; background-color: #404040; border: 1px solid #4c4c4c; display: block; }
.logowrap ul li a:hover { color: #000; }
/*------------------[DROPDOWN MENU]------------------*/
.nav ul { position:absolute; top:-999em; }
.nav li { float:left; position:relative; z-index:9; }
.nav ul li { width: 100%; }
.nav li:hover ul, ul.nav li.sfHover ul { left:-40px; top:7px; }
.nav li:hover li ul, .nav li.sfHover li ul { top:-999em; }
.nav li li:hover ul, ul.nav li li.sfHover ul { left:161px; top:-26px; }
.nav li:hover ul, .nav li li:hover ul { top: -999em; }
.nav li li { padding: 0px; }
.nav li:hover { }
.nav li li a:link, .nav li li a:visited { width: 180px; display: block; background-image: url(images/pages-bg-2.gif) !important; background-position: 400px 0px; }
.nav li li a:hover { } |
Zie mijn site op: www.oxize.nl
Intel I7 970 CPU | Asus Rampage III Extreme | Asus ROG Strix GTX 1060 OC | Lian Li V1200 Case | Ocz Revodrive 3 X2 240GB | 12 GB Corsair Dominator | Creative Recon 3D | Corsair AX750 PSU | | Oxize Photography: www.Oxize.nl