Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: How to Remove the Feedburner Redirect #104353

    Thanks for looking Peter.

    I am going to close this out as everything seems to be an issue with the HubSpot plugin.

    I really appreciate the help.

    in reply to: How to Remove the Feedburner Redirect #104351

    Thanks Dude!

    The redirect seems to be gone now.

    Now I am getting an error on my feed though that I need to fix to finish this up.

    Here is the error:

    This page contains the following errors:

    error on line 37 at column 493: EntityRef: expecting ‘;’

    in reply to: How to Remove the Feedburner Redirect #104349

    Found where the redirect is at (in a plugin file).

    Now I just need to figure out how to disable the redirect

    Here is the code for the plugin file:

    <?php

    class WPHubspotSocial {

    function WPHubspotSocial() {

    // FeedBurner Integration Hooks

    add_filter(‘feed_link’, array(&$this, ‘hs_feedburner_feed_link’), 1, 2);

    if(is_admin()){

    //

    } else {

    add_action(‘template_redirect’, array(&$this, ‘hs_feed_redirect’));

    }

    }

    //=============================================

    // Replace RSS with Feedburner

    //=============================================

    function hs_feed_redirect() {

    global $feed;

    // Do nothing if not a feed

    if (!is_feed()) {

    return;

    }

    // Do nothing if feedburner is the user-agent

    if (preg_match(‘/feedburner/i’, $_SERVER)){

    return;

    }

    if (preg_match(‘/googlebot/i’, $_SERVER)){

    return;

    }

    $hs_settings=get_option(‘hs_settings’);

    if ($feed != ‘comments-rss2′ && trim($hs_settings) != ”) {

    if (function_exists(‘status_header’)) status_header( 302 );

    header(“Location:” . trim($hs_settings));

    header(“HTTP/1.1 302 Temporary Redirect”);

    exit();

    }

    }

    //=============================================

    // Feedburner filter URL

    //=============================================

    function hs_feedburner_feed_link($output, $feed){

    $hs_settings=get_option(‘hs_settings’);

    $feed_url=$hs_settings;

    //preg_match(“/rss2|atom|rdf/i”, $feed)

    if(trim($feed_url) != ” && $feed!=’comments-rss2′){

    $feed_array = array(‘rss’ => $feed_url, ‘rss2′ => $feed_url, ‘atom’ => $feed_url, ‘rdf’ => $feed_url, ‘comments_rss2′ => ”);

    $feed_array[$feed] = $feed_url;

    $output = $feed_array[$feed];

    }

    return $output;

    }

    }

    in reply to: How to Remove the Feedburner Redirect #104348

    Thanks for the response Ismael, but I’ve already tried that.

    The default feed continues to redirect to the feedburner feed URL.

    Is there anywhere else in the theme where this redirect could be triggering (besides the .htaccess file where it is not in there)?

    in reply to: Removing elements from specific pages #84157

    Thank you Ismael and Mya.

    Finally got it working as needed.

    I really appreciate the support!

    in reply to: Removing elements from specific pages #84155

    Thanks Mya.

    I have done this, but for some reason the elements I am commenting out or even completely removing still show up.

    in reply to: Removing elements from specific pages #84153

    Thank you for the quick reply Ismael, but that either didn’t work or I’m not doing something correctly.

    When I try to even just comment out sections I don’t want to show up the elements don’t get removed from the page.

    For example, I commented out the breadcrumb trail and they remained on the page.

    Any advice?

    I do actually.

    Would this same reference apply if I only wanted to show the WooCommerce shop bar (top of the site) on specific pages as opposed to the whole website as it defaults to now?

    If not, how / where would I accomplish that?

    Thanks Dude!

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