Hey support team.
I want to change the format 404 page of my site. I don’t like the tabs and it would be great if I could get rid of them and instead implement something different like an accordion or some icon boxes across a few columns or something different anyway.
I have accessed the error404.php file but I am very new to coding so I don’t know what to change to get the results I want. Can you help?
Thanks,
Evan
open up wp-contentthemesenfoldincludeserror404.php and delete
<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>'
));
?>
I have deleted that bit, which is great, thanks. How can I add some additional features like icon boxes or an accordion? Or is this not possible?
Thanks
You can try to generate the shortcode/content with the shortcode generator (magic wand icon in the TinyMCE toolbar). Then replace the code I posted in my last post with
$error_msg = "MY CONTENT";
$error_msg = do_shortcode($error_msg);
echo $error_msg;
and instead of MY CONTENT insert your shortcode/content between the quotes (” “).
I would also like to edit my 404 page. Do I make these changes to the parent theme file? If not, what/ how do I copy over to the child theme? Thanks!
Hi,
Just create a 404.php file (with the contents of the parent theme) inside the child theme folder.
Regards,
Josue