• Resolved boldlygo

    (@boldlygo)


    Hey,

    When viewed from cell phones the menu does not show up. It says ‘untitled’ at the top of the page and the page links do not display. What can I do to fix this?

    I am using the twenty fourteen theme.

    treemousepads.com

    Thanks,

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter boldlygo

    (@boldlygo)

    Okay. I changed it but it isn’t bringing any errors on the homepage. There is a wp-config.php and a wp-config-sample.php under the treemousepads.com folder. I changed it in wp-config.

    Ok, that’s right what you’ve done – odd that there are no errors showing.

    The code on your homepage is definitely breaking after the amazon iframe. How have you included this iframe, did you put the code in or use a plugin?

    Thread Starter boldlygo

    (@boldlygo)

    I created the following page:

    <?php
    /*
    Template Name: a Store Page
    */
    ?>
    <?php get_header();
    get_sidebar();
    get_sidebar( 'content' );?>
      <div id="all">
        <div class="sub"> <iframe src="https://astore.amazon.com/treemousepads-20" width="90%" height="900" scrolling="hidden" </div>align="middle"></iframe></div>
    
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<?php the_content(__('[Read more]'));?>
    			<?php endwhile; else: ?>
    						<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
    <!-- The main column ends  -->

    Then I added this to the style sheet:

    #all{
        width:100%;
        float:center;
        text-align:center;
    }
    div.sub, iframe {
    
        margin: 0 auto;
    }

    Ah that’s it!

    You’re missing a bit of code in that template.
    Add in <?php get_footer(); ?> as the last line and that will solve everything.

    Thread Starter boldlygo

    (@boldlygo)

    It worked! Thank you!

    And I think the div class=”sub” line is supposed to be:

    <iframe src="https://www.juju.com/jobs?k=&l=Branchburg%2C+NJ&r=20" width="100%" height="1200px" scrolling="hidden" align="middle">
    </iframe></div>

    Of course, it helps a lot if what you’re trying to i-frame responsively is responsive itself:

    Anyway, thanks a lot — my web search for a solution turned up methods employing everything from transparent gifs to Jquery. That’s what I deserve for not coming directly here first!

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Menu does not show up when viewed from mobile’ is closed to new replies.