Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #306463

    I have ran a couple of SEO reports and they are telling me

    This page contains the following 2 broken links. You should fix them so that search engines think that the page is still up-to-date.

    http://clclawncare.com/feed/
    HTTP status code: 404, HTML tag: <link href (rel=”alternate”)>
    http://clclawncare.com/feed-2/
    HTTP status code: 404, HTML tag: , anchor text: “feed”

    How do I fix these? I can Not find them anywhere!!!

    #306633

    I have the same problem.
    Found this double lines in my home page source:

    <!-- add feeds, pingback and stuff-->
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <strong><link rel="alternate" type="application/rss+xml" title=" RSS2 Feed" href="http://indianwedding.sephi.com/feed/" /></strong>
    <strong><link rel="pingback" href="http://indianwedding.sephi.com/xmlrpc.php" /></strong>
    
    <!-- mobile setting -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <!-- Scripts/CSS and wp_head hook -->
    <strong><link rel="alternate" type="application/rss+xml" title=" &raquo; Feed" href="http://indianwedding.sephi.com/feed/" />
    </strong>
    <strong><link rel="alternate" type="application/rss+xml" title=" &raquo; Comments Feed" href="http://indianwedding.sephi.com/comments/feed/" /></strong>
    

    This is a big problem, and I’m surprised that such theme developer as Kriesi don’t fix it fast.

    Please help.

    Dan

    #306669

    Hi!

    Enfold does not add these feed links to the head section (you can check header.php if you don’t believe me) and it’s not something we can fix on our end. If you want to avoid that WordPress adds these feed links to the head section you can study this article: http://www.wpbeginner.com/wp-tutorials/how-to-disable-rss-feeds-in-wordpress/

    If you use a SEO plugin you can often deactivate the rss links on the seo plugin option screen (i.e. if you use Yoast SEO go to SEO > Titles & Metas and tick the “Hide RSS Links” checkbox).

    Best regards,
    Peter

    #306681

    Peter,

    I did check the header.php , and you do have this there.
    This is my header.php content:

    <?php
    	global $avia_config;
    
    	$style 		= $avia_config['box_class'];
    	$responsive	= avia_get_option('responsive_layout','responsive');
    	$blank 		= isset($avia_config['template']) ? $avia_config['template'] : "";	
    	$av_lightbox= avia_get_option('lightbox_active') != "disabled" ? 'av-default-lightbox' : 'av-custom-lightbox';
    	
    ?>
    
    <!DOCTYPE html>
    <html <?php language_attributes(); ?> class="<?php echo " html_{$style} ".$responsive." ".$av_lightbox." ".avia_header_class_string();?> ">
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    
    <!-- page title, displayed in your browser bar -->
    <title><?php if(function_exists('avia_set_title_tag')) { echo avia_set_title_tag(); } ?></title>
    
    <?php
    /*
     * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
     * located in framework/php/function-set-avia-frontend.php
     */
     if (function_exists('avia_set_follow')) { echo avia_set_follow(); }
    
     /*
     * outputs a favicon if defined
     */
     if (function_exists('avia_favicon'))    { echo avia_favicon(avia_get_option('favicon')); }
    ?>
    
    <!-- add feeds, pingback and stuff-->
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> RSS2 Feed" href="<?php avia_option('feedburner',get_bloginfo('rss2_url')); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    <!-- mobile setting -->
    <?php
    
    if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
    ?>
    
    <!-- Scripts/CSS and wp_head hook -->
    <?php
    /* Always have wp_head() just before the closing </head>
     * tag of your theme, or you will break many plugins, which
     * generally use this hook to add elements to <head> such
     * as styles, scripts, and meta tags.
     */
    
    wp_head();
    
    ?>
    
    </head>
    
    <body id="top" <?php body_class($style." ".$avia_config['font_stack']." ".$blank); avia_markup_helper(array('context' => 'body')); ?>>
    
    	<div id='wrap_all'>
    
    	<?php 
    	if(!$blank) //blank templates dont display header nor footer
    	{ 
    		 //fetch the template file that holds the main menu, located in includes/helper-menu-main.php
             get_template_part( 'includes/helper', 'main-menu' );
    
    	} ?>
    	
    	<div id='main' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'>
    
    	<?php do_action('ava_after_main_container'); ?>
    • This reply was modified 10 years, 4 months ago by tech500.
    #306696

    Hey!

    Strange – I’ll ask Kriesi to remove it with the next update. I couldn’t find it in my header.php file (developer server).

    Cheers!
    Peter

    #306759

    I know…

    Even with all plugins disabled, it still there.

    Thanks

    Dan

    #306768

    Hey!

    Ok – I submitted a patch to Kriesi. With the next update you’ll be abe to remove the pingback, feed, etc. tags with this code:

    
    add_action('after_theme_setup','avia_remove_feed');
    function avia_remove_feed()
    {
          remove_action( 'wp_head', 'avia_set_rss_tag', 10, 1 );
    }
    

    You can add it to the functions.php file of your child theme or into enfold/functions.php.

    Cheers!
    Peter

    #306783

    Hi Peter,

    When I add this code right now, I get a blank home page.

    Dan

    #306824

    Hey!

    Yes, it won’t work yet. I decided to rewrite the patch a bit and I changed the code a bit too. Please do not use it before the next update. If you want to remove the feed now just edit header.php and delete this line:

    
    <link rel="alternate" type="application/rss+xml" title="<?php echo get_bloginfo('name'); ?> RSS2 Feed" href="<?php avia_option('feedburner',get_bloginfo('rss2_url')); ?>" />
    
    

    Regards,
    Peter

    #306847

    Ok, I just want to resolve that for my next audit report.

    Thanks

    #306861

    Hey!

    Ok, I’ll close the thread now. If the next update and the code I posted here: https://kriesi.at/support/topic/wp-feed-not-working/#post-306768 doesn’t solve the problem, please create a new thread.

    Regards,
    Peter

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘WP- Feed Not Working’ is closed to new replies.