- This topic has 10 replies, 5 voices, and was last updated 3 years, 11 months ago by David.
September 11, 2017 at 4:03 am #383123sdanbu
When URLS are incorrect, a search option appears that lets the user search the whole site.
GP has very handy ways to disable and enable features.
I would like to disable search on some websites.
Is there a way to use simple css or something to simply toggle search function on or off?September 11, 2017 at 8:31 am #383256LeoStaffCustomer Support
Not sure what you mean? You can just disable search in the customizer?September 11, 2017 at 7:28 pm #383557sdanbu
Oh I don’t mean search in navigation.
When visitors go to an invalid url, they get a page (that looks like a biog post) that says “search the site…” and has a search field.
I’m talking about disabling that oneSeptember 11, 2017 at 8:21 pm #383592LeoStaffCustomer Support
Like disabling that page? Then where would it link to when user enter invalid URL?September 12, 2017 at 4:07 am #383781sdanbu
I think I need to change the 404.php page
I would probably delete the code:
<?php echo apply_filters( ‘generate_404_text’, __( ‘It looks like nothing was found at this location. Maybe try searching?’, ‘generatepress’ ) ); ?>
<?php get_search_form(); ?>
<!– .entry-content –>
<?php do_action( ‘generate_after_content’); ?>
<!– .inside-article –>
<?php do_action(‘generate_after_main_content’); ?>
</main><!– #main –>
<!– #primary –>
But how else do I customize it? it shows a list of blog posts…
I think i would remove the code:
But then how would I add a picture to the header of it?
do I add code: <?php do_action( ‘generate_before_content’ ); ?>
<?php do_action( ‘generate_before_entry_title’ ); ?>
<?php the_title( sprintf( ‘<h2 class=”entry-title” itemprop=”headline”>‘, esc_url( get_permalink() ) ), ‘</h2>’ ); ?>
<?php do_action( ‘generate_after_entry_title’ ); ?>
</header><!– .entry-header –>
<?php do_action( ‘generate_after_entry_header’ ); ?>September 12, 2017 at 8:11 am #383939LeoStaffCustomer Support
I’m still not quite sure what you are looking to do?September 12, 2017 at 9:13 am #383983sdanbu
I’m trying to customize the 404 error pageSeptember 12, 2017 at 9:24 am #383996LeoStaffCustomer Support
Can you link me to a page and list out everything you are hoping to do?September 12, 2017 at 9:58 am #384039TomLead DeveloperLead Developer
You can use a plugin like this to build your own 404 page: https://en-ca.wordpress.org/plugins/404page/
That’s probably the easiest method 🙂December 16, 2019 at 2:52 am #1105572Milos
Hi, I just bought this cool template and try to adapt it like the original one. Can you advise me how to turn off the search box on mobile, which I added to the top as a widget? Thank you MiloshDecember 16, 2019 at 6:22 am #1105728DavidStaffCustomer Support
could you start a new topic where you can share a link to your site using the Site URL. So we can take a look.
- You must be logged in to reply to this topic.