I've placed the menu in the left of my joomla theme and styled it like my main menu but it's creating all the submenus with a few which is indenting it a lot as I have many categories, how can I get rid of the indent? I've tried margins and padding in my CSS files but nothing works. Thanks!
I'm not able to show you the URL but I will show some of the code. <a title="Product Item" style="display:block;" class="sublevel" href="http://someplace.com/component/page,shop.browse/category_id,28/option,com_virtuemart/Itemid,35/" > My Product Item</a> Code (markup): That's what virtuemart is outputting. The more sub-categories the more gets added. It's really annoying how they do that.
is there any function which rendering this code? if yes, simply use, for example: str_replace(" ","",$your_text_to_display");
I tried something like that yesterday and it didn't work. Maybe I had the wrong code? I'll try to find what I used.
I've tried these javascript options: function selectItem(cat_id, cat_value){ var option_name = document.getElementById(cat_id); var option_count = option_name.length; var option_value = document.getElementById(cat_id).value; for(i = 0; i < option_count; i++){ if(option_name[i].value == option_value){ return_text = option_name[i].text; document.getElementById(cat_value).value = str.replace(/\u00a0/g,''); } } return false; } Code (markup): function trim (str) { return str.replace(/^[\s( )]+/g,'').replace(/[\s( )]+$/g,''); } Code (markup): And a few php solutions, nothing has worked. Basically I just want to remove the extra spacing that adds.