• Resolved MrSlartibartfast

    (@mrslartibartfast)


    Hi,

    I’m am curious if it is possible to adapt the smartphone / mobile display of raindrops theme?
    I thought I saw something in the description, but wanted to ask before I start messing around with it.

    thanks for any ideas!

Viewing 6 replies - 1 through 6 (of 6 total)
  • I think you can do any thing you want.

    that theme is already responsive, if you want to add new stuff create a media query. also check they use YUI Grids http://yuilibrary.com/yui/docs/cssgrids/

    Thread Starter MrSlartibartfast

    (@mrslartibartfast)

    Ah nice. Thanks for your answers and the link, that already helps a lot! I didn’t really know where to start..

    So I will read myself into that and see if I have some more questions.

    u are welcome!!!

    Thread Starter MrSlartibartfast

    (@mrslartibartfast)

    Hello again,

    So now I found something I don’t know who to solve.
    Sorry if its quite a simple question, I didn’t have anything to do so far with responsive design / optimizing for smartphones..

    There is a picture path that I would like to change for mobile.

    For example the standard picture path is:
    images/apartment01/
    for mobile it should load the smaller version:
    images/apartment01/thumbs/

    thanks in advance for any pointers!

    Thread Starter MrSlartibartfast

    (@mrslartibartfast)

    Ok, so I found a solution with a little bit of php code.

    Just posting it in case that is interesting for anyone.
    there is a practical wordpress function called wp_is_mobile() that comes back with true or false.

    if ( wp_is_mobile() ) {
    /* load small pic for mobile devices */
    $baseURL = '/images/apartment01/Thumb/';
    }
    else {
    /* standard normal size pic display */
    $baseURL = '/images/apartment01/';
    }
    
    <img src="<?php echo $baseURL; ?>pic01.jpg">
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘smartphone adaption’ is closed to new replies.