Themes that adjust for screen size

  • Unknown's avatar

    That’s cool. I wasn’t sure how it worked. I suppose the theme would have to use JavaScript to determine available screen size, and then some PHP to set up, say, a second column. Maybe doable? I don’t know if themes use that. Otherwise, it would have to be added to the WP.com code in general. Perhaps as a checkbox in the Apperance > Extras page, that would read, “Display second column of content on widescreen monitors”. Then any theme could work with that feature, if they wanted to. Hope you’re well. :-)

  • Unknown's avatar

    I am well, and I hope you are also.

    Yeah, it would require javascript, and the system would have to poll the browser on a regular basis in case the user narrowed or widened their browser window.

    All wordpress themes are written in PHP by the way.

    Even with a check box under appearance > extras, there would need to be styling done in each theme to support it. In some themes it might be pretty easy, but in a number of them I’ve customized in the past, it would basically require a complete redesign.

    Still, capabilities such as this are around the corner.

  • Unknown's avatar

    @TSP
    G’night :)

  • The topic ‘Themes that adjust for screen size’ is closed to new replies.