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 »

[SOLVED] Image wrapper <div class="thumb-shadow">


  #1  
Old Apr 19, 2013, 12:00 AM
skyfire
 
2 posts · Apr 2013
This is a clean install of WP 3.5.1 and I have attempted 2 versions 1.1.4 and 1.1.8

The posts thumbnail shown with no shadow and box. Just an image.
Can you help to advise?
Thanks.

-------
This is the HTML from the demo. "thumb-shadow" and "post-thumb" classes are wrapping the thumbnail.
<div class="thumb-shadow">
<div class="post-thumb">
<a href="http://test.bytesforall.com/2012/08/another-post-with-all-kinds-of-things-in-it-and-a-long-title-too-to-see-how-wrapping-of-long-titles-works-in-this-theme/">
<div class="img_wrapper" style="display: block; width: 592px; height: 172px;">
<span/>
</a>
</div>
</div>

-----
This is HTML from my post. Image wrapped in A tag and come right after the H2 tag
...
</a>
</h2>
<a href="http://localhost/wordpress/?p=21">
<img src="http://localhost/wordpress/wp-content/uploads/2013/04/office-lunch-620x180.jpg" width="620" height="180"/>
<span/>
</a>
  #2  
Old Apr 19, 2013, 03:54 AM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
the thumbnail shadow and color change has been removed because it was causing issued (see this thread for the original reporting of the issue)

Hopefully the developer will figure out the issue and it will be back in a future release.
  #3  
Old Apr 20, 2013, 12:00 PM
iTaskmanager
 
11 posts · Apr 2013
Hello. It has always worked. It no longer works now. I have modified the code, long time ago. But it does not help.

Code:
<div id="post-<?php the_ID(); ?>" <?php post_class( 'cf' ); ?>>

	<h2>
		<span class="post-format"></span>
		<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
		<?php bfa_comments_popup_link( '0', '1', '%' ); ?>
	</h2>

	<?php bfa_thumb( 620, 180, true, '', '' ); ?>
	
	<div class="post-bodycopy cf">
	
		<div class="post-date">		
			<p class="post-month"><?php the_time( 'M' ); ?></p>
			<p class="post-day"><?php the_time( 'j' ); ?></p>
			<p class="post-year"><?php the_time( 'Y' ); ?></p>				
		</div>

		<?php bfa_excerpt( 55, ' ...' ); ?>
		
	</div>

	<div class="post-footer">
		<a class="post-readmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
		<?php _e( 'read more &rarr;', 'montezuma' ); ?></a>
		<p class="post-categories"><?php the_category( ' &middot; ' ); ?></p>

		<?php the_tags( '<p class="post-tags">', ' &middot; ', '</p>' ); ?>
	</div>
	
</div>
What can i do now?
  #4  
Old Apr 20, 2013, 01:15 PM
skyfire
 
2 posts · Apr 2013
Thanks a lot. Looking for a beautiful update coming soon...

Quote:
Originally Posted by juggledad
the thumbnail shadow and color change has been removed because it was causing issued (see this thread for the original reporting of the issue)

Hopefully the developer will figure out the issue and it will be back in a future release.
  #5  
Old Apr 20, 2013, 05:39 PM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
It looks like this is fixed in version 1.1.9 which is currently in the WordPress theme review queue.
If you want to jump the gun, you could download it at http://wordpress.org/extend/themes/d....zip?nostats=1
  #6  
Old Apr 20, 2013, 08:51 PM
iTaskmanager
 
11 posts · Apr 2013
Unfortunately, the problem still exists.

It's a fresh and clean Wordpress-Install. Without Plugins, without changes, ...
  #7  
Old Apr 21, 2013, 02:15 AM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what browser are you using?
What is the URL?
did you reset the postformat.php virtual template? if not please reset it.

Last edited by juggledad; Apr 21, 2013 at 02:52 AM.
  #8  
Old Apr 21, 2013, 07:21 AM
iTaskmanager
 
11 posts · Apr 2013
Hey.
Internet Explorer: 10.0.9200.16540
Google Chrome: Version 26.0.1410.64 m
URL: Show private Message

Quote:
/httpdocs/montezuma/wp-content/themes/montezuma/admin/default-templates/sub-templates
-> The patch doesn't help.
  #9  
Old Apr 21, 2013, 03:29 PM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
if you use this
HTML Code:
<?php bfa_thumb( 620, 180, true, '', '' ); ?>
you will get no shadow, try
HTML Code:
	<?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>' ); ?>
  #10  
Old Apr 21, 2013, 10:10 PM
iTaskmanager
 
11 posts · Apr 2013
I have already changed. Unfortunately it still doesn't work.
  #11  
Old Apr 22, 2013, 03:43 AM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you send me a pm with an admin ID/pw I'll take a look.

Last edited by lmilesw; Apr 22, 2013 at 12:19 PM.
  #12  
Old Apr 22, 2013, 11:45 AM
iTaskmanager
 
11 posts · Apr 2013
That's very nice of you! Thank you.
  #13  
Old Apr 22, 2013, 03:06 PM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
take a look now it is working. Notice that the bfa_thumb looks like this
HTML Code:
	<?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>' ); ?>
but if you reset the template it shows as this
HTML Code:
	<? Php bfa_thumb (620, 180, wahr, '<div class = "thumb-shadow" > <div class = "post-thumb" > ',' </ div> </ div> ');?>
note the space in the '<? php' that is invalid, the capital 'P', the replacement of the word 'true' with 'wahr', the space in the '</ div>'

something is messing with the code.

Last edited by juggledad; Dec 9, 2014 at 04:50 PM.
  #14  
Old Apr 22, 2013, 06:25 PM
iTaskmanager
 
11 posts · Apr 2013
Thanks!

I have changed to another blog, but it does't help. Have you changed any more?

postformat.php:
* https://www.dropbox.com/s/7docwk99us...postformat.txt

Blog:
* not /montezuma but /wordpress

I'm confused.
  #15  
Old Apr 22, 2013, 07:39 PM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
look at the example bfa_thumb I show and then what you have in that other site. Compare them character by character
  #16  
Old Apr 22, 2013, 07:59 PM
iTaskmanager
 
11 posts · Apr 2013
I don't understand what you mean.

I compare both versions? I did that...

//EDIT:
I downloaded all the files (Theme montezuma) from name.tld/montezuma to name.tld/wordpress and uploaded it. The problem is still there.

There are no differences between name.tld/montezuma and name.tld/wordpress. Are both newly installed versions.

Last edited by iTaskmanager; Apr 22, 2013 at 10:51 PM.
  #17  
Old Apr 23, 2013, 11:26 AM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Go back to post #13 in this thread and look at the two lines of code I put there. Now what differences do you see between them?
  #18  
Old Apr 23, 2013, 12:20 PM
iTaskmanager
 
11 posts · Apr 2013
The difference is:
  • Use "<? Php" instead "<?php"
  • "wahr" instead "true"
  • "(620" written together
  • Div-Class apart with spaces

I use this code. But it's doesn't work.

Code:
<? Php bfa_thumb (620, 180, wahr, '<div class = "thumb-shadow" > <div class = "post-thumb" > ',' </ div> </ div> ');?>
I just don't understand...
  #19  
Old Apr 23, 2013, 12:43 PM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
So that doesn't work, did you try the other?
  #20  
Old Apr 23, 2013, 12:50 PM
iTaskmanager
 
11 posts · Apr 2013
I have tried all the codes.

If this path is still correct?
Code:
/httpdocs/wordpress/wp-content/themes/montezuma/admin/default-templates/sub-templates

Last edited by iTaskmanager; Apr 23, 2013 at 12:54 PM.
  #21  
Old Apr 24, 2013, 04:31 AM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
let me try this again. go to the virtual template 'postformat.php' and replace the line
HTML Code:
<? Php bfa_thumb (620, 180, wahr, '<div class = "thumb-shadow" > <div class = "post-thumb" > ',' </ div> </ div> ');?>
with
HTML Code:
<?php bfa_thumb( 620, 180, true, '<div class="thumb-shadow"><div class="post-thumb">', '</div></div>' ); ?>
for what ever reason, your site is adding spaces and translating the word 'true' to 'wahr' and together those changes are causing your issue.
  #22  
Old Apr 25, 2013, 10:51 AM
iTaskmanager
 
11 posts · Apr 2013
Hello.
I have reinstalled WordPress again. Unfortunately it still does not work.

Would you look again for me?
  #23  
Old Apr 25, 2013, 11:26 AM
juggledad's Avatar
juggledad
 
23,632 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I'll be happy to go look again but I'll have to charge you. I've explained what is wrong and how to fix it multiple times. Sorry but I can't give you any more of my time for free.
  #24  
Old Apr 28, 2013, 04:44 PM
iTaskmanager
 
11 posts · Apr 2013
I do not know why, but it works again. Just like that.

I thank you for your help!

Bookmarks

Tags
thumbnail wrapper

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
thumb image blogmaster2003 Montezuma Theme 2 Oct 18, 2012 07:12 AM
inputbackgr.gif shadow background image on email fields too? AlbertS. Center area post/pages 2 May 14, 2012 08:10 AM
Add -moz border and shadow to header image? ARealpolitik Header configuration & styling 1 Dec 31, 2011 11:48 AM
[SOLVED] Custom Widget area to appear outside of wrapper? lehacarpenter Sidebars & Widgets 6 Dec 16, 2011 02:03 PM
[SOLVED] Black bars above and below header image in style default where in CSS class? akakillroy New Versions, & Updating 2 Sep 25, 2010 09:15 PM


All times are GMT -6. The time now is 05:11 AM.


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