404 Page questions - by donhetter - on WordPress WooCommerce support

This topic has 11 replies, 3 voices, and was last updated 5 years, 3 months ago ago by Olga Barlow

  • Avatar: donhetter
    donhetter
    Participant
    August 6, 2019 at 03:23

    1) How do we edit the text on our 404 page? http://prntscr.com/oouemn we want to have a custom 404 page.

    2) On the 404 page there is a search box. When someone uses this and even searches keywords they do not show any product pages in the results? Even if you search with the title of a certain product title in this box, again it doesnt even show that product in the search results

    10 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 6, 2019 at 11:11

    Hello,

    1) You may look for third-party plugin or copy the xstore/404.php file to child theme and edit its content according to your needs.
    2) Because that is 404 is for pages http://prntscr.com/oozj28 and by default search is for pages/posts, not for products. If you want to get search by product there you can replace
    get_search_form( true ); by
    etheme_search_form( array( 'action' => 'default' ));
    http://prntscr.com/oozr6t

    Regards

    Avatar: donhetter
    donhetter
    Participant
    August 8, 2019 at 22:56

    We contacted woocommerce about the 404 page and received this message.

    It may not be their custom 404 file, but it’s a 404 file either created
    by the theme developer or a developer of your website and it’s being used
    under the theme.

    How do we now copy the xstore/404.php file to child theme, we want to edit the text of the current 404 page.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 9, 2019 at 08:31

    Hello,

    Theme Options > 404 page > 404 page content.

    Regards

    Avatar: donhetter
    donhetter
    Participant
    August 10, 2019 at 00:05

    Thanks, I see once we add text here it deletes all of the previous text including the search box. How could we add new text, plus add a new search box to the 404 page?

    Avatar: donhetter
    donhetter
    Participant
    August 10, 2019 at 00:23

    Follow up on this, I see where can add text but how could we 1) change this text to different colors, 2) add a search box, or 3) add a large clickable image to the 404 page?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 10, 2019 at 09:16

    Hello,

    In this case, you need to follow the previous instruction – http://prntscr.com/oquk3a
    Connect to your server via FTP software, go to themes/xstore folder, there you will find 404.php file. Copy the file to themes/xstore-child folder and edit the content depends on your needs http://prntscr.com/oqul5m
    Styling, can be changed using custom CSS code. Add CSS code in style.css file of the child theme. For example,
    http://prntscr.com/oqum70

    /* custom 404 page */
    .page-404 h1 {
        color: red;
    }
    .page-404 p {
        color: #212121;
    }

    Regards

    Avatar: donhetter
    donhetter
    Participant
    August 10, 2019 at 16:45

    1 Earlier it was said a third party plugin would work for editing the 404 page. What plugin would you recommend?

    2 at Theme Options > 404 page > 404 page content are we able to add a clickabe image? if so what size would we add that would look good on both desktops and mobile devices.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    August 10, 2019 at 17:05

    1. We did not test such plugins with our theme officially, so can not provide you with a solid response about this yet.
    Note that we don’t give guaranty for full theme compatibility with all 3-rd party plugins.
    2. You can create a static block with the desired content and show it on the 404 page via shortcode. For example – http://prntscr.com/oqyhv5 http://prntscr.com/oqyhy6 http://prntscr.com/oqyi0v = http://prntscr.com/oqyi4e + http://prntscr.com/oqyi8p
    ( http://prntscr.com/oqyif0 http://prntscr.com/oqyiiy http://prntscr.com/oqyio2 )
    https://www.8theme.com/documentation/xstore/support/static-blocks/

    Regards

    Avatar: donhetter
    donhetter
    Participant
    August 12, 2019 at 22:05

    Thank you much! u know any plugsin that work good to redirect all or some of the 404 pages to a specific url?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    August 13, 2019 at 16:12

    Hello,

    You are welcome. We did not look for such plugins, that’s why don’t have suggestions.

    Regards

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

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

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