Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] Image wrapper <div class="thumb-shadow"> (http://forum.bytesforall.com/showthread.php?t=20161)

skyfire Apr 19, 2013 12:00 AM

[SOLVED] Image wrapper <div class="thumb-shadow">
 
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>

juggledad Apr 19, 2013 03:54 AM

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.

iTaskmanager Apr 20, 2013 12:00 PM

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?

skyfire Apr 20, 2013 01:15 PM

Thanks a lot. Looking for a beautiful update coming soon...

Quote:

Originally Posted by juggledad (Post 99555)
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.


juggledad Apr 20, 2013 05:39 PM

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

iTaskmanager Apr 20, 2013 08:51 PM

Unfortunately, the problem still exists.

It's a fresh and clean Wordpress-Install. Without Plugins, without changes, ... :(

juggledad Apr 21, 2013 02:15 AM

what browser are you using?
What is the URL?
did you reset the postformat.php virtual template? if not please reset it.

iTaskmanager Apr 21, 2013 07:21 AM

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.

juggledad Apr 21, 2013 03:29 PM

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>' ); ?>

iTaskmanager Apr 21, 2013 10:10 PM

I have already changed. Unfortunately it still doesn't work.

juggledad Apr 22, 2013 03:43 AM

If you send me a pm with an admin ID/pw I'll take a look.

iTaskmanager Apr 22, 2013 11:45 AM

That's very nice of you! Thank you.

juggledad Apr 22, 2013 03:06 PM

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.

iTaskmanager Apr 22, 2013 06:25 PM

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.

juggledad Apr 22, 2013 07:39 PM

look at the example bfa_thumb I show and then what you have in that other site. Compare them character by character

iTaskmanager Apr 22, 2013 07:59 PM

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.

juggledad Apr 23, 2013 11:26 AM

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?

iTaskmanager Apr 23, 2013 12:20 PM

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...

juggledad Apr 23, 2013 12:43 PM

So that doesn't work, did you try the other?

iTaskmanager Apr 23, 2013 12:50 PM

I have tried all the codes.

If this path is still correct?
Code:

/httpdocs/wordpress/wp-content/themes/montezuma/admin/default-templates/sub-templates

juggledad Apr 24, 2013 04:31 AM

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.

iTaskmanager Apr 25, 2013 10:51 AM

Hello.
I have reinstalled WordPress again. Unfortunately it still does not work.

Would you look again for me? :(

juggledad Apr 25, 2013 11:26 AM

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.

iTaskmanager Apr 28, 2013 04:44 PM

I do not know why, but it works again. Just like that.

I thank you for your help!


All times are GMT -6. The time now is 03:38 PM.

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