SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Remove href

  1. #1
    SitePoint Addict
    Join Date
    Aug 2008
    Posts
    292
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Remove href

    So, I bought a theme and its responsive, but not has some issues. It has mobile navigation, but the problem is that the drop down menus are also links. What the hell?

    http://worldyardgames.com/

    So, this means that you can't really view the sub-list items.

    I asked woothemes about it and they told me that it works fine on their end. I think they are full of crap and I have been disappointed with their responses on a few issues now. How can you make an href not clickable? They should have made the main nav items headers or just list items without and href when on smaller screens.

    Also, even if you do make these main nav lists items just li's will the nav stay open long enough for people to view?

    I did see some similar answers which I will quote:

    Will this really work here or should I try to use javascript and do this?

    Quote Originally Posted by Paul O'B View Post
    HI,

    You could try this:

    Code:
    @media screen and (max-width:600px) {
    div.rcolimg:after{
    position:absolute;
    content:" ";
    left:0;
    top:0;
    width:100%;
    bottom:0;
    z-index:9999;
    }
    }
    It shims an element over the image so it can't be clicked at less than 600px.

    Quote Originally Posted by Paul O'B View Post
    I use the same technique in navigation where all the navigation elements are links but you don't want the current page to be a link and reload the same page. You just shim a pseudo element over the top and stop it being clicked. It's ideal where the navigation is an include and you don't want to fiddle with the current page and complicate the include.

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,312
    Mentioned
    177 Post(s)
    Tagged
    8 Thread(s)
    Hi Brian,

    The navigation works well enough for me.
    Viewing your page on my mobile, I could open the expandable points like "My Account" just fine.

    You can use a link for something like this (although it might not be best practise), as long as you prevent its default action.expandible


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •