• Resolved esbowman

    (@esbowman)


    My url is: assemblycreative.com

    Problem: When viewing the site using Safari on iOS, the mobile theme has two issues. 1) The about page is completely hidden. 2) The portfolio page is showing the the wrong featured image for one project. If you look you will see a featured image for We Were Promised Jetpacks, and another project named Jon Hardy & The Public. On Safari for iOS the featured image for Jon Hardy & The Public is also being used for We Were Promised Jetpacks. However, it works fine on my desktop and even Chrome for iOS.

    Background on my setup: I have my portfolio page setup to use custom post types. Admittedly, I should probably just go out and buy a new responsive wordpress theme, but up until recently everything was working well enough. I’m using the AnyMobileThemeSwitcher plugin to use a mobile theme when it detects an Android or iOS device. The code I’m using for the portfolio page is:

    <?php
    /**
     * The Template for displaying all AC Portfolio posts.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    
    get_header(); ?>
    
    		<div id="container" class="one-column">
    			<div id="content" role="main">
    		<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    					<h1 class="entry-title"><?php the_title(); ?></h1>
    
    					<div class="entry-content portfolio-content">
    						<?php the_content(); ?>
    						<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    					</div><!-- .entry-content -->
    
    					<div class="entry-utility">
    						<?php twentyten_posted_in(); ?>
    						<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    					</div><!-- .entry-utility -->
    				</div><!-- #post-## -->
    				<p class="nav-middle-prev">
                    	     	<?php previous_post_link_plus( array(
    							'order_by' => 'menu_order',
    							'order_2nd' => 'menu_order',
    							'meta_key' => '',
    							'loop' => true,
    							'end_post' => false,
    							'thumb' => false,
    							'max_length' => 0,
    							'format' => '%link',
    							'link' => 'Previous',
    							'tooltip' => 'Previous',
    							'in_same_cat' => false,
    							'in_same_tax' => false,
    							'in_same_format' => false,
    							'ex_cats' => '',
    							'ex_cats_method' => 'weak',
    							'ex_posts' => '',
    							'before' => '',
    							'after' => '',
    							'num_results' => 1,
    							'echo' => true
    							) ); ?>
              		</p>
                    <p class="nav-middle-next">
                    	     	<?php next_post_link_plus( array(
    							'order_by' => 'menu_order',
    							'order_2nd' => 'menu_order',
    							'meta_key' => '',
    							'loop' => true,
    							'end_post' => false,
    							'thumb' => false,
    							'max_length' => 0,
    							'format' => '%link',
    							'link' => 'Next',
    							'tooltip' => 'Next',
    							'in_same_cat' => false,
    							'in_same_tax' => false,
    							'in_same_format' => false,
    							'ex_cats' => '',
    							'ex_cats_method' => 'weak',
    							'ex_posts' => '',
    							'before' => '',
    							'after' => '',
    							'num_results' => 1,
    							'echo' => true
    							) ); ?>
                        </p>
    				<p class="nav-bottom-prev">
                    	     	<?php previous_post_link_plus( array(
    							'order_by' => 'menu_order',
    							'order_2nd' => 'menu_order',
    							'meta_key' => '',
    							'loop' => true,
    							'end_post' => false,
    							'thumb' => false,
    							'max_length' => 0,
    							'format' => '%link',
    							'link' => 'Previous',
    							'tooltip' => 'Previous',
    							'in_same_cat' => false,
    							'in_same_tax' => false,
    							'in_same_format' => false,
    							'ex_cats' => '',
    							'ex_cats_method' => 'weak',
    							'ex_posts' => '',
    							'before' => '',
    							'after' => '',
    							'num_results' => 1,
    							'echo' => true
    							) ); ?>
              		</p>
                    <p class="nav-bottom-next">
                    	     	<?php next_post_link_plus( array(
    							'order_by' => 'menu_order',
    							'order_2nd' => 'menu_order',
    							'meta_key' => '',
    							'loop' => true,
    							'end_post' => false,
    							'thumb' => false,
    							'max_length' => 0,
    							'format' => '%link',
    							'link' => 'Next',
    							'tooltip' => 'Next',
    							'in_same_cat' => false,
    							'in_same_tax' => false,
    							'in_same_format' => false,
    							'ex_cats' => '',
    							'ex_cats_method' => 'weak',
    							'ex_posts' => '',
    							'before' => '',
    							'after' => '',
    							'num_results' => 1,
    							'echo' => true
    							) ); ?>
                      </p>
    			</div><!-- #content -->
    		</div><!-- #container -->
    	<?php endwhile; // end of the loop. ?>
    <?php get_footer(); ?>

    I’m a designer, not a coder. ?? Any help I can get here is most appreciated! Thanks!!!

Viewing 1 replies (of 1 total)
  • Thread Starter esbowman

    (@esbowman)

    Embarrassingly I have to admit that this was fixed simply by clearing the cache for Safari on iOS. All is well.

Viewing 1 replies (of 1 total)
  • The topic ‘Mobile theme displaying incorrectly yet desktop version is fine.’ is closed to new replies.