Tagged: ,

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #460866

    I’ve added some text to the error404 page, but would like to make more changes.

    1. There are some spacing issues that I would like removed around the existing content. How is this removed?
    2. The posts show 3 columns (Popular, Recent, Comments). I would like Comments and Popular columns to not display. I would like the resultant Posts section with only the Recents column to move up beside the Search column. How is this done?

    #461127

    Hi m!

    Please try the following in Quick CSS under Enfold–>General Styling:

    . error404 .content {
      padding-top: 0px !important;
      padding-bottom: 0px !important;
    }

    Regards,
    Rikard

    #461508

    That didn’t change anything.

    #461511

    Hi!

    There is an extra space before the class, please remove it so it should look as following

    .error404 .content {
      padding-top: 0px !important;
      padding-bottom: 0px !important;
    }

    Regards,
    Yigit

    #461527

    Thanks, that provided a change. A small amount of space was removed, which is good. However, under the posts section there is still a large white space.

    Also my issue #2 was not resolved.

    #461713

    Hey!

    Sorry, my bad with the first code. Please try this as well:

    .error404 .err.tab_counter_0, .error404 .err.tab_counter_2 {
    display:none !important;
    }
    
    .error404 .widget {
    padding: 0px 0 0px 0 !important;
    }

    Cheers!
    Rikard

    #464680

    The spacing is great now, thanks! But, issue #2 is still not resolved:
    2. The posts show 3 columns (Popular, Recent, Comments). I would like Comments and Popular columns to not display. I would like the resultant Posts section with only the Recents column to move up beside the Search column. How is this done?

    #465460

    Hey!

    Please place this code in the function.php file to remove the other tabs: http://pastebin.com/aYVSuTZ2

    Add this in the Quick CSS field:

    .widget_tab_popular, .widget_tab_comments {
      display: none !important;
    }

    Regards,
    Ismael

    #466558

    Thanks, this removes the unwanted columns. Awesome. This part wasn’t resolved, not sure if it’s possible:

    2. I would like the resultant Posts section with only the Recents column to move up beside the Search column.

    #467400

    Hi!

    You need to modify the includes > error404.php file in order to do that. Separate the section by enclosing them inside a column. By section, I mean this line of codes:

    <p class='entry-content'><strong><?php _e('Nothing Found', 'avia_framework'); ?></strong><br/>
    
    <?php _e('Sorry, the post you are looking for is not available. Maybe you want to perform a search?', 'avia_framework'); ?>
    </p>
    <?php
    
    		if(isset($_GET['post_type']) && $_GET['post_type'] == 'product' && function_exists('get_product_search_form'))
    		{
    			get_product_search_form();
    		}
    		else
    		{
    			get_search_form();
    		}
    
    ?>
    
    <div class='hr_invisible'></div>
    

    And this one:

    <section class="404_recommendation">
        <p><?php _e('For best search results, mind the following suggestions:', 'avia_framework'); ?></p>
        <ul class='borderlist-not'>
            <li><?php _e('Always double check your spelling.', 'avia_framework'); ?></li>
            <li><?php _e('Try similar keywords, for example: tablet instead of laptop.', 'avia_framework'); ?></li>
            <li><?php _e('Try using more than one keyword.', 'avia_framework'); ?></li>
        </ul>
    
        <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');
        ?>
    </section>
    

    Best regards,
    Ismael

    #469832

    The first section you posted is not in my edited error404 file.
    How do I enclose the two sections in columns?

    #470034

    Hi!

    Are you sure? Please check it carefully. If it’s not there, you’re either using an old version of the theme or you’re looking in the wrong file. You can replace the code with this: http://pastebin.com/davKbdDk

    Regards,
    Ismael

    #470321

    This is my edited error404.php.

    #471363

    Hi!

    It’s actually the same. The first column should end after this code:

    <div class='hr_invisible'>
    

    And the second half should start before this code:

    <section class="404_recommendation">
    

    Please get the code from pastebin that we provided above: http://pastebin.com/davKbdDk

    Look for the flex column container. I think you will understand the code from that.

    Regards,
    Ismael

    #479858

    Should this be applied to a child theme so that it’s not overwritten by a theme update? What is your url to the article on how to set up child themes for Enfold?

    #480529

    Hi,

    You can have a look at this video in the documentation: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/

    Best regards,
    Rikard

    #485604

    Thank you. The child theme approach works so far. Resolved.

Viewing 17 posts - 1 through 17 (of 17 total)
  • The topic ‘Customizing error404 page’ is closed to new replies.