Hi to all I'm trying to create an advanced control panel for my first Wordpress template but I'm not able to add a function that I will need. The function that I'm trying to add is the possibility to choose the position of a DIV (left and bottom) via Admin Panel. (Apologize me for my really bad english)
Here is the code I have in my functions.php
$shortname = appacqua
array( "name" => "Point on the map",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Have I to activate zona 1?",
"desc" => "Select if you want to show the first zone",
"id" => $shortname."_zona1c",
"type" => "checkbox",
"std" => "false"),
array( "name" => "Zona 1",
"desc" => "Choose the position",
"id" => $shortname."_zona1x",
"type" => "text",
"std" => "Left:???"),
array( "type" => "close"),
I can see "box" in my Admin Panel and I have no problems with Checkbox, if I echo $shortname."_zona1x" It shows the number, the only problem I have is when I try to add this to my style.css:
.zona1{width:27px;height:27px;background:url(icone/1.png) no-repeat;position:absolute;bottom:0;left:<?php echo $appacqua_zona1x;?>px;}
It doesn't work... If I use Google Chrome to Ispect the element it gives me something like this:
width: 27px;
height: 27px;
background: url(icone/1.png) no-repeat;
position: absolute;
bottom: 0;
left: <?php echo $appacqua_zona1x;?>px;
What am I doing wrong? Thank you very much for you help.
Do you know if there is a way to create also a preview of this modification INSIDE the control panel (like inside an iFrame or stuff like this).
Let's say that I'm a "self-made programmer" :P so please write "slowly" (lol) and be kind with me, thank you a lot!