Theme RT 20 content-none.php
-
When using the search bar to locate SKU or out of stock inventory it gives this error instead of the redirect to a sorry we are out page or something of that type.
Error:
Fatal error: Call to undefined function esc_htmlesc_html_e() in /home3/ems/public_html/wp-content/themes/rt-theme-20/content-none.php on line 15
This is the coding for said page:
<?php /* * rt-theme content-none.php * nothing found */ ?> <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> <p><?php printf( esc_html__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'rt-theme-20' ), admin_url( 'post-new.php' ) ); ?></p> <?php elseif ( is_search() ) : ?> <p><?php esc_htmlesc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'rt-theme-20' ); ?></p> <?php get_search_form(); ?> <?php else : ?> <p><?php esc_htmlesc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'rt-theme-20' ); ?></p> <?php get_search_form(); ?> <?php endif; ?>[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code has now been damaged by the forum’s parser.]
How can I fix this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Theme RT 20 content-none.php’ is closed to new replies.