This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Customize the 404 page?

  • Creator
    Topic
  • #3690
    pixelrage
    Member

    Hello, how can we customize the 404 page? It currently exists and outputs a message, but this output isn’t anywhere to be seen in 404.php. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #3691
    Jason Bobich
    Keymaster

    Hello,

    I can think of three good ways you could tackle editing this.

    Option 1: You could simply put in whatever content you want by copying content-404.php to your Child theme and editing it.

    http://dev.themeblvd.com/tutorial/editable-content-files/

    You’d be replacing where you see

    <?php echo themeblvd_get_local( '404' ); ?>

    Option 2: You could use the String Swap plugin: http://wordpress.org/extend/plugins/theme-blvd-string-swap/

    Option 3: From your functions.php of your Child theme, you could just filter in your own text.

    function my_frontend_locals( $locals ){
    	$locals['404'] = 'Your text';
    	return $locals;
    }
    add_filter( 'themeblvd_frontend_locals', 'my_frontend_locals' );
    #3698
    pixelrage
    Member

    Thanks Jason! That first option was perfect, with the 404 page going into the child theme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.