Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #124221

    Michael H
    Participant

    Hello

    Is there a way I could change the text on the 404 page (‘Oops…etc.’) without going into and editing files? For example, as a custom CSS in the customizer?

    (My site, by the way is diarypal.co.uk. WordPress version 3.9.2.)

    Thanks,

    #124355

    Kosher K
    Member

    Hi Micheal,

    Thanks for writing in,

    Unfortunately, You can’t change text content with only CSS, However, you can try using Javascript instead,

    Just add this code below in your Customizer > Custom > Javascript and change the content accordingly,

    (function($){ 
    	//Change OOPS
    	$('.error404 .h-landmark span').text('I am 404 Heading');
    	
    	//Change You blew up the Internet.
    	$('.error404 .p-landmark-sub span').text('I am 404 Sub Heading');
    	
    	//Change Content Text
    	$('.entry-404 .center-text').text('I am 404 Content');
    })(jQuery)

    Let me know how it works,

    Cheers

    #127723

    Michael H
    Participant

    Thanks for that, but I’m sorry to say it did not work. The 404 page remained unchanged.
    This is what I pasted into the custom Javascript box in the customizer:

    (function($){
    //Change OOPS
    $(‘.error404 .h-landmark span’).text(‘I am 404 Heading’);

    //Change You blew up the Internet.
    $(‘.error404 .p-landmark-sub span’).text(‘Not Logged In?’);

    //Change Content Text
    $(‘.entry-404 .center-text’).text(‘We can’t get to the page you were looking for. It might be because you have not logged in.’);
    })(jQuery)

    #127822

    Rad
    Moderator

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #130467

    Michael H
    Participant
    This reply has been marked as private.
    #130698

    Cousett
    Member

    There are a number of plugins that might help you out:

    https://wordpress.org/plugins/404-to-start/

    These two links also review a number of plugins:
    http://www.hongkiat.com/blog/wordpress-404-pages-essential-tips-and-tools/
    http://www.wpvirtuoso.com/6-best-free-wordpress-404-plugins/

    I hope this helps.

    #131933

    Michael H
    Participant
    This reply has been marked as private.
    #131941

    Michael H
    Participant
    This reply has been marked as private.
    #131968

    Christopher
    Moderator

    Sure,please try and let us know how it goes.

    Thank you.

    #131987

    Michael H
    Participant
    This reply has been marked as private.
    #132022

    Christopher
    Moderator

    Hi there,

    Copy _content-none.php file from Theme -> framework -> views -> global
    And put it in the same path in your child theme ,open file and around line 14 you find
    <h1 class="entry-title"><?php _e( 'Nothing to Show Right Now', '__x__' ); ?></h1>
    change ‘Nothing to Show Right Now’ to any other word.

    and around line 17 you can find
    <p><?php _e( "It appears whatever you were looking for is no longer here or perhaps wasn't here to begin with. You might want to try starting over from the homepage to see if you can find what you're after from there.", '__x__' ); ?></p>
    edit them as well.

    Copy _landmark-header.php file from Theme -> framework -> views -> {STACK}
    And put it in the same path in your child theme ,open file around line 92 you find

     <h1 class="h-landmark"><span><?php _e( 'Oops!', '__x__' ); ?></span></h1>
        <p class="p-landmark-sub"><span><?php _e( "You blew up the Internet. ", '__x__' ); ?></span></p>

    change the texts as you wish.

    Thank you.

    #132050

    Michael H
    Participant
    This reply has been marked as private.
    #132075

    Christopher
    Moderator

    You’re welcome.
    let us know if you have question.