Hi Teseo and folks,
I'd like to resize the category box also when adding a listing, so by following your code and thinking, I added some lines in your code, but as I'm not a PHP programmer, of course it didn't work hunf! I thought it was going to work.
Well, the code you provided me was this one right below to resize at the home page:
<?php
function cust_resize_category_select() { ?>
<script type="text/javascript">
$(document).ready(function(){
$("#uniform-sCategory").css('width', '227px');
$("#uniform-sCategory span").css('width', '200px');
});
</script>
<?php }
osc_add_hook('footer', 'cust_resize_category_select');
?>
So, following your logic, I added the following lines to get to it works when adding listings:
$("#uniform-select_2").css('width', '300px');
$("#uniform-select_2 span").css('width', '255px');
So, the full code was:
<?php
function cust_resize_category_select() { ?>
<script type="text/javascript">
$(document).ready(function(){
$("#uniform-sCategory").css('width', '227px');
$("#uniform-sCategory span").css('width', '200px');
$("#uniform-select_2").css('width', '300px');
$("#uniform-select_2 span").css('width', '255px');
});
</script>
<?php }
osc_add_hook('footer', 'cust_resize_category_select');
?>
Any Idea what I have missed?
Thanks and have a nice week.