How can I remove   joomla virtuemart menu

Discussion in 'HTML & Website Design' started by crazyfish, Sep 18, 2008.

  1. #1
    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!
     
    crazyfish, Sep 18, 2008 IP
  2. ClickMedia

    ClickMedia Banned

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can u post the url here , so that i can help you.
     
    ClickMedia, Sep 19, 2008 IP
  3. crazyfish

    crazyfish Active Member

    Messages:
    1,110
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    80
    #3
    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/" >&nbsp;&nbsp;&nbsp;My Product Item</a>
    Code (markup):
    That's what virtuemart is outputting. The more sub-categories the more &nbsp;&nbsp;&nbsp; gets added. It's really annoying how they do that.
     
    crazyfish, Sep 19, 2008 IP
  4. artur81_skce

    artur81_skce Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    is there any function which rendering this code?
    if yes, simply use, for example: str_replace("&nbsp;","",$your_text_to_display");
     
    artur81_skce, Sep 19, 2008 IP
  5. crazyfish

    crazyfish Active Member

    Messages:
    1,110
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    80
    #5
    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.
     
    crazyfish, Sep 19, 2008 IP
  6. crazyfish

    crazyfish Active Member

    Messages:
    1,110
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    80
    #6
    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(&nbsp;)]+/g,'').replace(/[\s(&nbsp;)]+$/g,'');
    }
    Code (markup):
    And a few php solutions, nothing has worked. Basically I just want to remove the extra spacing that &nbsp; adds.
     
    crazyfish, Sep 19, 2008 IP
  7. artur81_skce

    artur81_skce Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    could you paste function which is rendering this code?
     
    artur81_skce, Sep 19, 2008 IP