Forums

Menu and IE cannot display one page (16 posts)

  1. baremindart
    Member
    Posted 1 year ago #

    I have two issues. Maybe I should have posted separately... but here goes.

    1) I just created my website with wordpress.org and moved wordpress.com blog to the site. baremindart.com
    So far, I have only 4 pages and everything else looks OK except "contact" page. It was working fine, but it's getting "Internet Explorer cannot display the webpage" message. I've tried restore, tried to retype the content but nothing is working.
    Please help how I can fix this.

    2) I have two "home" menu on the top. I don't know how to get rid of one of them. Also, I went to admin site, appearance, menu and changed the order, but it doesn't change.

    Please help. Any advice will be greatly appreciated. By the way, I'm not too website codes savvy...
    Thank you.
    Masako

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    1. Try resetting your custom permalinks back to the default setting. If this works, then review Using_Permalinks before setting a custom permalink structure back up again.

    2. Have you created a static front page??

  3. baremindart
    Member
    Posted 1 year ago #

    Hi esmi!
    Thank you sooo much now #1 problem is solved.

    I'll see #2 now... I did set up static front page home and Posts page Blog, though...

    Masako

  4. baremindart
    Member
    Posted 1 year ago #

    2. Ok... this is what I did to get two "Home" in the first place. I watched one of Youtube tutorial video and followed it.

    There was no "landing page" or "home page" Template under Page Attributes, so, I added below on top of home page php file and uploaded it.
    <?php
    /*
    Template Name: HomePage
    */
    ?>

    Then, I was able to select "HomePage" Template from the Page Attributes and saved.

    I think this caused two Home, but now "HomePage" Template from the page attributes disappeared. It's no longer there.

    I went to Setting -> Reading and set the static page, Front Page: Home and Posts Page: Blog.

    Then, I went to Apperance -> Menus and select all page (Blog, Home, Contact and About) and changed the order to Home, About, Contact, Blog.
    But my website shows, Home, About, Blog, Contact, Home. And when it first lands, it seems to go to the Home on the right end...

    I just noticed one more thing... Apperance -> Menus -> Pages
    Most Recent shows only 4 but if I "view all", there shows 5 (Home:Home, About, Blog, Contact, Home). Is this something to do with an issue...?

    Thank you for your advice.
    Masako

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Can you start by renaming your home.php template file to front-page.php? You don't need the usual custom template comment block at the top of the file. WP will automatically apply this template to a static front page.

  6. baremindart
    Member
    Posted 1 year ago #

    Just rename the file name that was uploaded already?

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Yes.

  8. baremindart
    Member
    Posted 1 year ago #

    I've just renamed the file. Now my home page of website shows error HTTP 500 message.

  9. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Does your theme contain an index.php template file?

  10. baremindart
    Member
    Posted 1 year ago #

    Yes, it does.

  11. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    And a page.php file The home page should just fall back to the standard page template...hmmm...

    Try editing header.php and changing <?php wp_list_pages('title_li=');?> to <?php wp_list_pages('title_li=&exclude=108');?>.

  12. baremindart
    Member
    Posted 1 year ago #

    hmmm.. this is scary.. I don't see wp_list_pages in header.php...
    I see something like this below, though. Does that help? You know.. I have no clue about this and thank you for putting up with me.

    <title>
    		<?php if ( is_home() ) { ?><?php bloginfo('description'); ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_search() ) { ?><?php echo $s; ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_page() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_category() ) { ?><?php _e('Archive', 'elegant-grunge') ?> <?php single_cat_title(); ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_month() ) { ?><?php _e('Archive', 'elegant-grunge') ?> <?php the_time('F'); ?> | <?php bloginfo('name'); ?><?php } ?>
    		<?php if ( is_tag() ) { ?><?php single_tag_title();?> | <?php bloginfo('name'); ?><?php } ?>
    </title>
  13. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    It would be a lot further down. Does header.php use <?php get_sidebar();?>

  14. baremindart
    Member
    Posted 1 year ago #

    esmi,
    This is the rest including above codes in header.php. I can't find <?php get_sidebar();?> either. I must have messed up when I created pages and then deleted them...

    <title>
    <?php if ( is_home() ) { ?><?php bloginfo('description'); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_search() ) { ?><?php echo $s; ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_page() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_category() ) { ?><?php _e('Archive', 'elegant-grunge') ?> <?php single_cat_title(); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_month() ) { ?><?php _e('Archive', 'elegant-grunge') ?> <?php the_time('F'); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_tag() ) { ?><?php single_tag_title();?> | <?php bloginfo('name'); ?><?php } ?>
    </title>

    <?php elegant_grunge_the_favicon() ?>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <?php if ( get_option('header_image') ) : ?>
    <style type="text/css">
    #header div {
    background: url(<?php echo get_option('header_image') ?>) no-repeat center top;
    width: 100%;
    height: 100%;
    display: block;
    }
    #header * {
    display: none;
    }
    </style>
    <?php endif; ?>
    <!--[if IE]>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/ie.css" />
    <style type="text/css">
    #footer #subscribe a {
    background:none;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php bloginfo('template_url')?>/images/rss.png');
    }
    <?php if ( get_option('header_image') ) : ?>
    #header div {
    background: none;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo get_option('header_image')?>');
    }
    <?php endif; ?>
    </style>
    <![endif]-->

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <?php echo get_option("extra_header") ?>

    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

    <?php wp_head(); ?>

    </head>

    <?php
    if ( !defined('EG_BODY_CLASS') && get_option('page_setup') != 'right-sidebar' )
    define('EG_BODY_CLASS', get_option('page_setup'));
    ?>

    <body <?php if ( defined('EG_BODY_CLASS') ) echo 'class="'.EG_BODY_CLASS.'"'; ?>>

    <div id="page">

    <div id="menu">

    <div class="clear"></div>
    </div>

    <div id="header-wrap">
    <div id="header">
    <div>
    <h1>"><?php bloginfo('name'); ?></h1>
    <span id="blog-description"><?php bloginfo('description'); ?></span>
    </div>
    </div>
    </div>

    <!-- end header -->

  15. baremindart
    Member
    Posted 1 year ago #

    And this is a part of my homepage.php. I found these menu names. I deleted Gallery and there is no longer gallery page but it's still showing. Also, I deleted About then re-created it but it's still show about-2 in the code, it comes out error on website, but when I open from the page other than Home page, it opens...

    <div id="menu">

      <li class="page_item ">Home
      <li class="page_item page-item-77">About
      <li class="page_item page-item-116">Blog
      <li class="page_item page-item-11">Contact
      <li class="page_item page-item-54">Gallery
      <li class="page_item page-item-108 current_page_item">Home

    <div class="clear"></div>

  16. baremindart
    Member
    Posted 1 year ago #

    Oops... codes disappeared...

Topic Closed

This topic has been closed to new replies.

About this Topic