• I do not want 2 separate templates for desktop and mobile. All i want is some sort of php if then statement to show the header slightly different dependent on the users viewing device. Is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can do that in the CSS code — twentyeleven is coded that way — look at the CSS code in the style.css file starting on line 2251:

    /* =Responsive Structure
    ----------------------------------------------- */
    
    @media (max-width: 800px) {

    See the file for the code…

    Thread Starter Overflow

    (@acrane)

    Ah, that’s pretty cool, but i guess what i’m really trying to do is get rid of my normal nav on the desktop version and replace it with a dropdown like you see with twenty eleven category selection.

    so –

    if its a desktop, show normal nav

    else if mobile show the dropdown.

    thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘same template for desktop and mobile’ is closed to new replies.