-
AuthorPosts
-
October 13, 2014 at 8:36 am #124221
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,
October 13, 2014 at 10:53 am #124355Hi 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
October 18, 2014 at 3:10 pm #127723Thanks 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)October 18, 2014 at 9:25 pm #127822Would 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 credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
October 23, 2014 at 2:15 am #130467This reply has been marked as private.October 23, 2014 at 9:07 am #130698There 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.
October 25, 2014 at 1:30 am #131933This reply has been marked as private.October 25, 2014 at 2:33 am #131941This reply has been marked as private.October 25, 2014 at 4:30 am #131968Sure,please try and let us know how it goes.
Thank you.
October 25, 2014 at 5:26 am #131987This reply has been marked as private.October 25, 2014 at 8:08 am #132022Hi 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.
October 25, 2014 at 9:17 am #132050This reply has been marked as private.October 25, 2014 at 9:49 am #132075You’re welcome.
let us know if you have question. -
AuthorPosts