Twenty ten or Twenty eleven as base for responsive child theme

Both Twenty Ten and Twenty Eleven are being maintained, since both are still bundled with core. However, Twenty Eleven has newer functionality, and a better overall codebase. I would recommend using Twenty Eleven. The only reason to use Twenty Ten, really, is that the codebase is considerably more simple. Note: when Twenty Twelve comes out, … Read more

Change twentytwelve sidebar responsive relocation?

The fast way to do this is to just change how it is loaded, open index.php and move this code: <?php get_sidebar(); ?> From line 73 and put it under get_header(); ?> around line 18, so it should look like: get_header(); ?> <?php get_sidebar(); ?> <div id=”primary” class=”site-content”> // rest of twentytwelve code. Ps. I … Read more

mobile vs responsive sites [closed]

Mobile website : Mobile website is a separate site, designed for mobile phones and mobile browsers. The main benefit of having a mobile site is that you can target your mobile audience very well. The drawbacks are several. Since your desktop site and mobile site are two separate entities, when you update your website, you … Read more

Change “posts per page” depending on width

A simple approach would be a solution with CSS and PHP. <?php $postcount = 1; $wp_query = new WP_Query(); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div class=”post-<?php echo $postcount ?>”> <h3><a href=”https://wordpress.stackexchange.com/questions/111019/<?php the_permalink() ?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a></h3> <div class=”entry”> <?php the_excerpt(); ?> </div> </div> <?php $postcount++; endwhile; ?> Then you can style your website, … Read more

Responsive menu on genesis theme [closed]

I answered earlier but the link I provided doesn’t exist anymore. So, I’ll post the code here in hopes that it is what you’re looking for. In your functions.php, add this snippet to create the markup: /* Mobile Menu —————————————————————————————-*/ add_action( ‘genesis_site_description’, ‘ls_mobile_menu_toggle’, 5 ); function ls_mobile_menu_toggle() { echo ‘<div class=”menu-toggle”>’; echo ‘<li></li><li></li><li></li>’; echo ‘</div>’; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)