Topic: WP Float Updated to 1.6

WP Float has been updated to 1.6, visit  http://wordpress.org/extend/plugins/wp-float/ to download the new version

Re: WP Float Updated to 1.6

Hi!

Thanks a lot for this nice plugin! I really like it.

I discovered a problem with it though sad I use an image as a floating button and i noticed the image gets visible before it is on it's place. So it pops up visible, and the "rushes" to it's defined place. It would be cool if it would get visible, after it is on it's place.

Cheers,

Chris

Re: WP Float Updated to 1.6

Can you please provide a link to the page with the issue?

Re: WP Float Updated to 1.6

sure www.movablesite.com

Re: WP Float Updated to 1.6

I was unable to replicate your issue on a test site. I'm not sure as to why the button jumps into place however I will look into it. You can try changing your theme temporarily to see if it works without issues with another theme. If it does, then the issue is with your theme.

6 (edited by simplex 2012-12-28 07:41:05)

Re: WP Float Updated to 1.6

Ok I will try it in the next couple of days.

I discovered another problem, and it's a pretty bad one. The plugin somehow messes up the code of all the website where it's installed.

I checked with http://validator.w3.org, this one is your sample page:

Line 367, Column 78: An body start tag seen but an element of the same type was already open.
<body class="single single-post postid-42 single-format-standard designfolio">

Line 367, Column 78: Cannot recover after last error. Any further errors will be ignored.
<body class="single single-post postid-42 single-format-standard designfolio">

I have the same errors on my page when the plugin is active. This bug could stop google from indexing the site...

Edit for the problem number 1: I think to replicate this problem you just need to use a picture and set it to the bottom of the page. It will then appear on top and "move" to the bottom.

Re: WP Float Updated to 1.6

I checked your site again and I see what you are taking about, the image appears at the top briefly then jumps to the correct position. I will look into it and get back to you.

Different doctypes have different syntax that are acceptable, depending on the doctype being used by a site, the code may or may not validate. Unfortunately,writing code to validate with every doctype is not possible. I however temporary disabled WP Float, then validated the page again and I still saw the errors you mentioned so the errors are not from the plugin. You can disable it temporarily on your site then try to validate the site to see if the errors are resolved. Further, move your site validating or not does not determine whether Google crawls it or not. Check out https://sites.google.com/site/webmaster … ---ranking and look for " Does validating my site's code (with a tool such as the W3C validator) help my site's ranking in Google?".

8 (edited by simplex 2012-12-29 04:04:03)

Re: WP Float Updated to 1.6

I had a look at the code because I really need a floating button on my Website.

The problem was, that div tags are not allowed in the head section, so I moved it to the footer. Change

add_action('wp_head', 'wpfsh_head'); in wp-float.php

to

add_action('wp_footer', 'wpfsh_head');


This also solves the second problem, the picture is now appearing where it should and doesn't "race" to the right place after loading.

Cheers

Edit: Seems like when the button is at the top, it needs to be in the head section (div not allowed though needs different implementation) When the button is at the bottom the script should be in the footer. If you don't do that, the picture appears on a different place and then "moves" to the right place (does not look nice).

Re: WP Float Updated to 1.6

Great, I am glad you were able to resolve the issue.

Re: WP Float Updated to 1.6

simplex wrote:

I had a look at the code because I really need a floating button on my Website.

The problem was, that div tags are not allowed in the head section, so I moved it to the footer. Change

add_action('wp_head', 'wpfsh_head'); in wp-float.php

to

add_action('wp_footer', 'wpfsh_head');


This also solves the second problem, the picture is now appearing where it should and doesn't "race" to the right place after loading.

Cheers

Edit: Seems like when the button is at the top, it needs to be in the head section (div not allowed though needs different implementation) When the button is at the bottom the script should be in the footer. If you don't do that, the picture appears on a different place and then "moves" to the right place (does not look nice).

I have searched for that string in  wp-float/js/button-wpfloat.php but there isn't so.. is difficolt change the code..

Re: WP Float Updated to 1.6

Solved,
for modify the wp-float.php you can't do from Wordpress but you have to go in your file manager, wp directory, plug in, wp-float, find the wp-float.php search the string and change.

Thanks

Re: WP Float Updated to 1.6

NOT SOLVED,
if i change what is writing there all work fine since i'm log in as admin,

by a visitors i see my button on the footer so i change as before and i have alredy the same problem.
Please help me!

Re: WP Float Updated to 1.6

 The problem was, that div tags are not allowed in the head section, so I moved it to the footer. Change

    add_action('wp_head', 'wpfsh_head'); in wp-float.php

    to

    add_action('wp_footer', 'wpfsh_head'); 

I have changed this but if i'm logged as Admin the button on the left they are ok in the center of left screen but if i log out, all visitor see this button on the footer and the button disapear on the left.

How i can fix the load problem? All page who is load in my website without Crome are loaded in bad mode with a blanck space on the header.

http://www.PeopleInside.IT - http://www.MarcoBorla.IT

Re: WP Float Updated to 1.6

New video of the wp-float problem white space on header on page loading:
http://screencast.com/t/wWsKLQ6BHo

Now i will change the live chat button with other more small and wait for the reply and fix.

Thanks.
Please help me.

Re: WP Float Updated to 1.6

Solved, i have correct the code as this forum say,
was a plug in who cause the problem anonimous user can't see the button.

The bad plug in i have unistalled was http://wordpress.org/extend/plugins/virtual-keyboard/

Thanks