Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Animated Numbers text #1311241

    I have the same problem but based on the info box posts I could see a temporary fix until they roll an update.
    Edit line 207 in the file wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/numbersnumbers.php so the line…
    'std' => __( 'Add your own text', 'avia_framework' ),
    … becomes…
    // 'std' => __( 'Add your own text', 'avia_framework' ),

    in reply to: Creating a 410.php #1000408

    No such luck :-(

    Giving up now I’m afraid. Can I please suggest that you add a 410.php file as a feature request in future versions. A lot of us are very wary of Google and support for this plugin would be awesome.

    Thank you for trying.

    in reply to: Creating a 410.php #999463

    Hi Peter,

    Ahh, sorry, that has now been added to the functions.php.

    Still no joy though. I feel i should be calling the new functions somehow though?

    I tried adding do_action('wp_410_response'); to my 410.php but that didn’t seem to make a difference.

    I have ensured that all caching is turned off while we do this.

    Regards, Dan

    in reply to: Creating a 410.php #999408

    Didn’t make any difference but I’m not sure I am putting it in the right place?…

    <?php 
    	if ( !defined('ABSPATH') ){ die(); }
    	global $avia_config;
    add_action('wp_410_response','avia_set_410_status', 10);
    function avia_set_410_status()
    {
    	global $avia_config;
    	$avia_config['is_410'] = true;
    }
    
    add_filter('avf_title_tag', 'avia_change_title_tag', 10, 2);
    function avia_change_title_tag($title, $wptitle)
    {
    	global $avia_config;
    	if(!empty($avia_config['is_410']))
    	{
    		$title = '410 – Gone';
    	}
    
    	return $title;
    }
    	get_header();
    	echo avia_title(array('title' => __('Error 410 - Gone', 'avia_framework')));
    	do_action( 'ava_after_main_title' );
    ?>
    	<div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
    <?php 
    	do_action('avia_410_extra');
    ?>
    	<div class='container'>
    	<main class='template-page content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content'));?>>
    	<div class="entry entry-content-wrapper clearfix" id='search-fail'>
    	<p class='entry-content'><strong><?php _e('This page has been removed', 'avia_framework'); ?></strong><br/>
    <?php _e('Sorry, we\'ve had a tidy up and the the post you\'re looking for has been removed.<br/><br/>Maybe you want to perform a search?', 'avia_framework'); ?>
    	</p>
    <?php
    	if(isset($_GET['post_type']) && $_GET['post_type'] == 'product' && function_exists('get_product_search_form'))
    		{get_product_search_form();}
    	else
    		{get_search_form();}
    ?>
    	<div class='hr_invisible'></div>
    	<section class="410_recommendation">
    	<p><strong><?php _e('For best search results, mind the following suggestions:', 'avia_framework'); ?></strong></p>
    	<ul class='borderlist-not'>
    	<li><?php _e('Always double check your spelling.', 'avia_framework'); ?></li>
    	<li><?php _e('Try similar keywords, for example: tablet instead of laptop.', 'avia_framework'); ?></li>
    	<li><?php _e('Try using more than one keyword.', 'avia_framework'); ?></li>
    	</ul>
    	<div class='hr_invisible'></div>
    <?php
    	do_action('ava_after_content', '', 'error410');
    ?>
    	</section>
    	</div>
    	</main>
    <?php
    	$avia_config['currently_viewing'] = 'page';
    ?>
    	</div>
    	</div>
    <?php get_footer(); ?>
    in reply to: Creating a 410.php #997614

    Hi Victoria,

    We did try making the includes/error410 and have also tried pulling it into the file itself (see below).

    I have set this up for you to see. If you browse to THIS PAGE you can see what I was talking about. The page title and breadcrumb trail still says “404”.

    This is our current 410.php file and as you can see it has no reference to “404”

    <?php
            if ( !defined('ABSPATH') ){ die(); }
            global $avia_config;
            get_header();
            echo avia_title(array('title' => __('Error 410 - Gone', 'avia_framework')));
            do_action( 'ava_after_main_title' );
    ?>
            <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
    <?php
            do_action('avia_410_extra');
    ?>
            <div class='container'>
            <main class='template-page content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content'));?>>
            <div class="entry entry-content-wrapper clearfix" id='search-fail'>
            <p class='entry-content'><strong><?php _e('This page has been removed', 'avia_framework'); ?></strong><br/>
    <?php _e('Sorry, we\'ve had a tidy up and the the post you\'re looking for has been removed.<br/><br/>Maybe you want to perform a search?', 'avia_framework'); ?>
            </p>
    <?php
            if(isset($_GET['post_type']) && $_GET['post_type'] == 'product' && function_exists('get_product_search_form'))
                    {get_product_search_form();}
            else
                    {get_search_form();}
    ?>
            <div class='hr_invisible'></div>
            <section class="410_recommendation">
            <p><strong><?php _e('For best search results, mind the following suggestions:', 'avia_framework'); ?></strong></p>
            <ul class='borderlist-not'>
            <li><?php _e('Always double check your spelling.', 'avia_framework'); ?></li>
            <li><?php _e('Try similar keywords, for example: tablet instead of laptop.', 'avia_framework'); ?></li>
            <li><?php _e('Try using more than one keyword.', 'avia_framework'); ?></li>
            </ul>
            <div class='hr_invisible'></div>
    <?php
            do_action('ava_after_content', '', 'error410');
    ?>
            </section>
            </div>
            </main>
    <?php
            $avia_config['currently_viewing'] = 'page';
    ?>      
            </div>
            </div>
    <?php get_footer(); ?>

    Please help. Thank you.

    in reply to: Creating a 410.php #997516

    Hi Basilis,

    We build Linux servers for living so hosting shouldn’t be the issue. It’s a standard LEMP stack and we use it for hosting hundreds of WP sites.

    The 410.php page “works” however the 404.php file we are copying contains so much Enfold stuff that we don’t seem to be able to customise it to say “410 – Gone” :-(

    The following is the Enfold 404.php with “404” changed to “410” inside the PHP however the page title and page breadcrum still states “404”!? :-/

    <?php 
    	if ( !defined('ABSPATH') ){ die(); }
    	global $avia_config;
    	get_header();
    	echo avia_title(array('title' => __('Error 410 - Gone', 'avia_framework')));
    	do_action( 'ava_after_main_title' );
    ?>
    	<div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
    <?php 
    	do_action('avia_410_extra');
    ?>
    	<div class='container'>
    	<main class='template-page content <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content'));?>>
    	<div class="entry entry-content-wrapper clearfix" id='search-fail'>
    <?php
    	get_template_part('includes/error410');
    ?>
    	</div>
    	</main>
    <?php
    	$avia_config['currently_viewing'] = 'page';
    ?>
    	</div>
    	</div>
    <?php get_footer(); ?>
    • This reply was modified 6 years, 4 months ago by dogsbody.
    in reply to: Creating a 410.php #997218

    Hi Victoria,

    This is exactly what I did however the page title and breadcrumb menu stayed saying “404” no matter what I put in the 410.php file :-/

Viewing 7 posts - 1 through 7 (of 7 total)