WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Thirteen
Different content on mobile device (6 posts)

  1. Mats Westholm
    Member
    Posted 7 months ago #

    I made a child theme to Twenty Thirteen to change whats presented on front page using is_home() in content.php. I works fine on desktop but not on mobile device. How do I control the content presented on mobile device?

    My code:

    <?php
    if(is_home()){ ?>
    <p>" rel="bookmark">
    <?php
    if(has_post_thumbnail()){
    the_post_thumbnail();
    ?>
    <?php }
    the_title(); ?>
    </p>
    <?php } else{ ?>

  2. Andrew
    Forum Moderator
    Posted 7 months ago #

  3. Mats Westholm
    Member
    Posted 7 months ago #

    But it's not about css, it's html. The content is different.

  4. Andrew
    Forum Moderator
    Posted 7 months ago #

    Responsive design is just hiding content on smaller devices. Do you see what I'm getting at?

  5. Andrew
    Forum Moderator
    Posted 7 months ago #

    If you don't Twenty Thirteen's responsive design you could use the WP Mobile plugin http://wordpress.org/plugins/rocket-wp-mobile/

  6. Mats Westholm
    Member
    Posted 7 months ago #

    It's not hiding. It's showing the hole post(the_content()) as in the original content.php. I want just the the thumbnail to show (the_post_thumbnail()). So it shows more content on mobile device than on desktop. I want the same content on mobile device as desktop. Styling is fine.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.