Viewing 3 reply threads
You must be logged in to reply to this topic.
Hello,
When I try to use the center alignment setting in the media element, I get the following error.
Warning: A non-numeric value encountered in /home/colouroasis/public_html/wp-content/themes/specular/vc_templates/media.php on line 22
The error doesn’t occur in left or right alignment, only when centered.
We are running the latest version 3.1.3.
-Chris
Hello,
It’s just a warning message caused by a High Strict level of error logging. Try to change WP_DEBUG to false, if this not helping, open the media.php file and on line 22
replace with:
$width_style = 'style="width:'.(int) $width.'px;position:relative; left:50%; margin-left:-'.((int) $width/2).'px;" ';
Let me know if this helps you
Thanks
Hello,
That did not help.
WP_DEBUB was already set to false.
I tried replacing the php code. After changing it, when setting the images to center, after saving, the image completely disappears as does the media element it was in.
-Chris
Hello,
Just tried directly in your website, you can fix the issue by setting a Width after switch to Center. For example on one of your homepage images I set width to 300
It works now, let me know if this helps
Thanks
You must be logged in to reply to this topic.