Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #139822

    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>'
    ));
    ?>

    #139823

    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

    #139824

    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 (” “).

    #163041

    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!

    #163115

    Hi,

    Just create a 404.php file (with the contents of the parent theme) inside the child theme folder.

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Edit the 404 Tabs’ is closed to new replies.