404 page - by Eduard - on WordPress WooCommerce support

This topic has 2 replies, 2 voices, and was last updated 5 years ago ago by Rose Tyler

  • Avatar: Eduard
    Eduard
    Participant
    April 9, 2019 at 14:02

    what code do I have to put on 404 page to redirect to home page?

    Thank you

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 9, 2019 at 14:10

    Hello,

    <a class="btn" href="URL of your page"><span>Home</span></a>
    For example – http://prntscr.com/n9kz15
    http://prntscr.com/n9kzdm

    <h2 class="largest">404</h2>
    <h1>That Page Can't Be Found</h1>
    <p>It looks like nothing was found at this location. Try using the search.</p>
    <div class="widget_search">
    	<form action="URL_of_home_page" role="searchform" class="hide-input" method="get">
    		<div class="input-row">
    			<input type="text" name="s" class="form-control" placeholder="Search...">
    			<input type="hidden" name="post_type" value="post">
    			<button type="submit" class="btn medium-btn btn-black"><i class="et-icon et-zoom"></i>Search</button>
    		</div>
    	</form>
    </div>		
    <br><br>
    <p><a class="btn" href="your_URL"><span>Home</span></a></p>

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.