Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Post excerpt images are overlapping text with Chrome Extension


  #1  
Old Dec 7, 2013, 04:45 PM
apestate
 
15 posts · Dec 2013
San Francisco, CA
I ran into an issue with post excerpt thumbs being displayed atop the excerpt contents when I showed my in-development website to a friend. Here is the way the page was rendered.

I couldn't repeat the problem so I searched this forum and found this thread where OP says the problem was an extension. With this information in hand, it was possible to isolate the issue to the Chrome extension Facebook Disconnect.

It is unclear how this plugin is affecting the page in question, but disabling the plugin resolves the problem, enabling the plugin causes it.

The following is the code of that plugin:
Code:
/*
  A content script that stops Facebook from tracking the webpages you go to.

  Copyright 2010, 2011 Disconnect, Inc.

  This program is free software: you can redistribute it and/or modify it under
  the terms of the GNU General Public License as published by the Free Software
  Foundation, either version 3 of the License, or (at your option) any later
  version.

  This program is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along with
  this program. If not, see <http://www.gnu.org/licenses/>.

  Authors (one per line):

    Brian Kennish <byoogle@gmail.com>
*/

/* The domain names Facebook phones home with, lowercased. */
const DOMAINS = ['facebook.com', 'facebook.net', 'fbcdn.net', 'disconnect.me'];
    // "disconnect.me" whitelisting is temporary, for FBME.

/*
  Determines whether any of a bucket of domains is part of a URL, regex free.
*/
function isMatching(url, domains) {
  const DOMAIN_COUNT = domains.length;
  for (var i = 0; i < DOMAIN_COUNT; i++)
      if (url.toLowerCase().indexOf(domains[i], 2) >= 2) return true;
          // A valid URL has at least two characters ("//"), then the domain.
}

/* Traps and selectively cancels a request. */
if (!isMatching(location.href, DOMAINS))
    document.addEventListener('beforeload', function(event) {
      if (isMatching(event.url, DOMAINS)) event.preventDefault();
    }, true);

Bookmarks

Tags
excerpt, overlap, thumb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excerpt thumbnail on left, title/byline/excerpt/footer on right without wrapping text rickheck Excerpts, Read more, Pagination 6 Mar 3, 2015 10:41 AM
[SOLVED] The post images are overlapping my excerpt contents srekcahrai Montezuma Theme 7 Jun 13, 2013 12:27 PM
[SOLVED] Problem in Chrome: text under the images in the home page. RicardoRVM Montezuma Theme 3 Jan 28, 2013 08:17 AM
[SOLVED] Help - Blog post pulling incorrect excerpt text and image on Facebook iamstermad RSS, Feeds & Subscribing 4 Nov 22, 2010 12:25 AM
overlapping text in firefox Dona Center area post/pages 7 Sep 12, 2010 04:31 PM


All times are GMT -6. The time now is 10:56 AM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.