WordPress.org

Forums

Twenty Thirteen
Different content on mobile device (6 posts)

  1. Mats Westholm
    Member
    Posted 1 year 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
    Nuh uh moderator
    Posted 1 year ago #

  3. Mats Westholm
    Member
    Posted 1 year ago #

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

  4. Andrew
    Nuh uh moderator
    Posted 1 year ago #

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

  5. Andrew
    Nuh uh moderator
    Posted 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.