Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Post excerpt images are overlapping text with Chrome Extension


  #1  
Old Dec 7, 2013, 05: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



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 11:41 AM
[SOLVED] The post images are overlapping my excerpt contents srekcahrai Montezuma Theme 7 Jun 13, 2013 01:27 PM
[SOLVED] Problem in Chrome: text under the images in the home page. RicardoRVM Montezuma Theme 3 Jan 28, 2013 09:17 AM
[SOLVED] Help - Blog post pulling incorrect excerpt text and image on Facebook iamstermad RSS, Feeds & Subscribing 4 Nov 22, 2010 01:25 AM
overlapping text in firefox Dona Center area post/pages 7 Sep 12, 2010 05:31 PM


All times are GMT -6. The time now is 12:02 PM.


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