-
AuthorPosts
-
September 6, 2013 at 11:06 am #29140
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
September 6, 2013 at 11:46 am #139822open 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>'
));
?>September 6, 2013 at 12:31 pm #139823I 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
September 7, 2013 at 8:56 am #139824You 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 (” “).
September 18, 2013 at 5:11 pm #163041I 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!
September 18, 2013 at 8:26 pm #163115Hi,
Just create a 404.php file (with the contents of the parent theme) inside the child theme folder.
Regards,
Josue -
AuthorPosts
- The topic ‘Edit the 404 Tabs’ is closed to new replies.
