-
AuthorPosts
-
June 17, 2015 at 4:39 pm #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?June 18, 2015 at 7:20 am #461127Hi m!
Please try the following in Quick CSS under Enfold–>General Styling:
. error404 .content { padding-top: 0px !important; padding-bottom: 0px !important; }
Regards,
RikardJune 18, 2015 at 6:55 pm #461508That didn’t change anything.
June 18, 2015 at 6:59 pm #461511Hi!
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,
YigitJune 18, 2015 at 7:11 pm #461527Thanks, 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.
June 19, 2015 at 7:46 am #461713Hey!
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!
RikardJune 25, 2015 at 8:04 pm #464680The 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?June 28, 2015 at 8:22 am #465460Hey!
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,
IsmaelJune 30, 2015 at 4:10 pm #466558Thanks, 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.
July 2, 2015 at 11:11 am #467400Hi!
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,
IsmaelJuly 7, 2015 at 5:20 pm #469832The first section you posted is not in my edited error404 file.
How do I enclose the two sections in columns?July 8, 2015 at 7:38 am #470034Hi!
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,
IsmaelJuly 8, 2015 at 3:24 pm #470321This is my edited error404.php.
July 10, 2015 at 10:03 am #471363Hi!
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,
IsmaelJuly 28, 2015 at 6:17 pm #479858Should 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?
July 30, 2015 at 6:24 am #480529Hi,
You can have a look at this video in the documentation: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/
Best regards,
RikardAugust 10, 2015 at 8:37 pm #485604Thank you. The child theme approach works so far. Resolved.
-
AuthorPosts
- The topic ‘Customizing error404 page’ is closed to new replies.