Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Aug 2016
    Posts
    3
    Member #
    55024

    WodrPress 404.php page design

    Hi guys! Help me please with designing 404.php for my site. I have a problem with php, I didn't know it well.

    Heres what I got.

    My php code what i find 404.php

    PHP Code:
    <?php get_header(); ?>
    <div id="page">
        <h1>Page Not Found</h1>
        <p>I'm very sorry, but the page you requested has not been found! It may have been moved or deleted.</p>
        <p>I'm not blaming you, but have you checked your address bar? There might be a typo in the URL.</p>
        <p>If there isn't, you could try searching my website for the content you were looking for:</p>
        <?php get_search_form(); ?>
        <p>Or maybe you were looking for one of my popular posts:</p>
        <ul>
            <li><a href="http://www.kravchukdesign.com/popular-post1">Popular Post 1</a></li>
            <li><a href="http://www.kravchukdesign.com/popular-post2">Popular Post 2</a></li>
            <li><a href="http://www.kravchukdesign.com/popular-post3">Popular Post 3</a></li>
            <li><a href="http://www.kravchukdesign.com/popular-post4">Popular Post 4</a></li>
        </ul>
        <p>Alternatively, you can go to <a href="http://www.kravchukdesign.com">my home page</a> or <a href="http://www.kravchukdesign.com/archives">browse my archives</a></p>
        <p>One last thing, if you're feeling so kind, please <a href="mailto:info@kravchukdesign.com">tell me</a> about this error, so that I can fix it. Thanks!</p>
    </div>
    <?php get_sidebar(); get_footer(); ?>
    Please help me with it, because it doesn't work well. Here error page. As you see, it doest work well for my site, it's hiden.http://www.kravchukdesign.com/dsegds/

    Can you please correct my code for my site
    Thank you.

  2.  

  3. #2
    Junior Member
    Join Date
    Aug 2016
    Posts
    3
    Member #
    55024
    Here my single php, can please anyone insert my 404.php into single php. Here what I seeing on my single php if I rename my single.php into 404.php. Thanks.10.JPG

    <?php get_header();

    if( have_posts() ): the_post();

    ?><div class="content-area-wrap">

    <div class="content-area <?php echo esc_attr( Youxi()->option->get( 'blog_single_layout' ) ); ?>">

    <div class="content-header">

    <div class="content-header-affix clearfix"><?php

    ?><h1 class="content-title">
    <?php echo strtr( Youxi()->option->get( 'blog_single_title' ), array( '{title}' => get_the_title() ) ); ?>
    </h1><?php

    ?><nav class="content-nav" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">
    <ul class="plain-list"><?php

    previous_post_link(
    '<li class="content-nav-link">%link</li>',
    '<span class="content-nav-link-wrap">' .
    '<span class="fa fa-chevron-left"></span>' .
    '<span class="content-nav-link-label">' . esc_html__( 'Previous Post', 'helium' ) . '</span>' .
    '</span>'
    );
    next_post_link(
    '<li class="content-nav-link">%link</li>',
    '<span class="content-nav-link-wrap">' .
    '<span class="content-nav-link-label">' . esc_html__( 'Next Post', 'helium' ) . '</span>' .
    '<span class="fa fa-chevron-right"></span>' .
    '</span>'
    );
    ?></ul>
    </nav>

    </div>

    </div>

    <div class="content-wrap">
    <?php Youxi()->templates->get( 'entry', get_post_format(), get_post_type() ); ?>
    </div>

    </div>

    </div>
    <?php endif;

    get_footer(); ?>

  4. #3
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,973
    Member #
    5580
    Liked
    760 times
    What do you want it to look like?


  5. #4
    Junior Member
    Join Date
    Oct 2016
    Posts
    3
    Member #
    55470
    plugin is the right way...


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 01:57 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com