Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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, 8 months ago by Dandy.
    #418277

    Hey 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,
    Yigit

    #463179

    Is there a way to achieve this via a child theme’s functions.php file, rather than modifying the original theme files?

    #463416

    Hey!

    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, 5 months ago by Elliott.
    #463717

    Thanks 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.

    #464177

    Hi!

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.