-
AuthorPosts
-
March 25, 2015 at 8:42 pm #418137
Hello,
i want to remove the Feel like browsing some posts instead? from the Error404 and Search site.
I found this code:.search h3, .search .widget.avia_combo_widget { display: none !important; } .error404 .avia_combo_widget, .error404 h3 { display: none!important; }
When i add this, than it will be hide, but than it hides text in sidebar and in footer, too
How can i fix this?
before quick CSS:
After Quick CSS
- This topic was modified 9 years, 9 months ago by Dandy.
March 26, 2015 at 3:07 am #418277Hey Manuel!
Please go to Enfold > Includes folder and open error404.php file and find following code between 31st-45th lines and remove it
<div class='hr_invisible'></div> <h3 class=''><?php _e('Feel like browsing some posts instead?', 'avia_framework'); ?></h3> <?php the_widget('avia_combo_widget', 'error404widget', array('widget_id'=>'404', 'before_widget' => '<div class="widget avia_combo_widget">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>' )); do_action('ava_after_content', '', 'error404'); ?>
Regards,
YigitJune 23, 2015 at 8:41 am #463179Is there a way to achieve this via a child theme’s functions.php file, rather than modifying the original theme files?
June 23, 2015 at 2:36 pm #463416Hey!
You can use this CSS to do the same.
.search_not_found h3, .search_not_found div { display: none !important; } .404_recommendation h3, .404_recommendation div { display: none !important; }
Regards,
Elliott- This reply was modified 9 years, 6 months ago by Elliott.
June 24, 2015 at 12:03 am #463717Thanks Elliott, but for optimal efficiency (page load time, database queries etc), I’d like to actually disable the feature rather than output it then hide it with CSS.
June 24, 2015 at 4:19 pm #464177Hi!
Create an “includes” folder in your child theme and drag the error404.php file into it.
If that does not work then drag the 404.php file to your child theme folder and switch line 30.
get_template_part('includes/error404');
With the contents of the error404.php file.
Cheers!
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.