404.php problem after editing

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6727 Reply
    Elmer
    Guest

    Hi sir ron! Im having a problem about Parse error: syntax error, unexpected T_STRING in /home/a4827952/public_html/wp-content/themes/frontier/404.php on line 18 after editing it. Here is the part I edited;

    <?php get_header(); ?>
    
    <div id="content" class="cf">
    
    	<?php do_action('frontier_before_content'); ?>
    
    	<div class="form-404">
    
    		<?php
    
    			$frontier_404_content = '<h2>' . __('Nothing Found', 'frontier') . '</h2>';
    
    			$frontier_404_content .= '<p>' . __('Oops, I screwed up and you discovered my fatal flaw.
    Well, we're not all perfect, but we try.  Can you try this
    again or maybe visit our <a
    title="Our Site" href="http://elmerock.site88.net">Home
    Page</a> to start fresh.  We'll do better next time.', 'frontier') . '</p>';
    
    			$frontier_404_content .= get_search_form( false );
    
    			echo apply_filters( 'frontier_404_content', $frontier_404_content );
    #6728
    Ron
    Keymaster

    Escape single quotes () by using a backslash (\)

    Example:

    $text = 'Here's an example';

    $text = 'Here\'s an example';

    You can get the unmodified file here:
    https://themes.svn.wordpress.org/frontier/1.2.4/404.php

    Changing Text on a WordPress theme:
    https://ronangelo.com/change-or-translate-text-on-a-wordpress-theme/

    #6730
    Elmer
    Guest

    I changed we’re into we\’re and we’ll into we\’ll
    .
    And it WORKED!

    THank you so much sir ron 😀
    PS, Thanks for your great theme

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: 404.php problem after editing
Your information: