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 »

How to turn off JS that controls featured images


  #1  
Old Dec 4, 2015, 02:12 PM
flyboy's Avatar
flyboy
 
115 posts · Sep 2010
I was toying with some different layouts in Montezuma that require the featured images (post thumbnails) to be loaded as single images with no JS behavior.

As it is, the theme applies two images (one desaturated, the other in full color) and swaps them on hover using JS. I already made one workaround that hides one of two images and uses pure CSS to achieve the color change effect on a single <img>. But it's kind of ugly since I have to use CSS hacks to hide one <img> and force the other into submission using !important rules.

I have a new layout that could do without the thumbnail-controlling JS altogether. Any way to permanently turn that specific JS off?
  #2  
Old Dec 4, 2015, 07:26 PM
CrouchingBruin's Avatar
CrouchingBruin
 
299 posts · Aug 2010
Santa Monica, CA
You can edit postformat.php to remove the post-thumb div from around the image. Then you won't get the desaturated image at all. Or you could call the_post_thumbnail() instead of bfa_thumb(), that will also prevent the desaturated image from being created.
__________________
My Montezuma-themed sites: ESHS Girls Basketball Team, Venice Hongwanji Buddhist Temple
Please consider making a donation to BytesForAll for their great themes!

Bookmarks

Tags
featured image, post thumb



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically Resizing Featured Images flyboy Montezuma Theme 0 Sep 11, 2015 12:07 AM
featured images put in center fafa Montezuma Theme 3 Dec 27, 2012 11:56 AM
[SOLVED] What controls styling of hr / tag? NightOwl Center area post/pages 2 Sep 21, 2011 05:58 PM
Random featured images in a widget peri Sidebars & Widgets 0 Sep 10, 2011 10:25 AM
How to turn link of pages in page menu on or off e.g. turn parent off & child on Deansta22 Page & Category Menu Bars 8 Jan 18, 2011 03:01 PM


All times are GMT -6. The time now is 11:19 PM.


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