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 » Atahualpa 3 Wordpress theme » New Versions, & Updating »

Validation error with new widget in footer


 
Prev Previous Post   Next Post Next
  #1  
Old Dec 19, 2011, 05:36 PM
tracytrends's Avatar
tracytrends
 
15 posts · Dec 2011
USA
Validation error with new widget in footer

I was able to enter the code for a custom footer and it validated after removing the lines Katy suggested, but only when the widget is empty.

If I fill the widget with a text box, it no longer validates. (I just upgraded but had this issue in 3.7.1 too)

It has something to do with the slashes and how the textwidget is being read. I'm new to WP, atahualpa, css, and php.

Here are the W3C errors:

Line 370, Column 61: an attribute value must be a literal unless it contains only name characters

…_2" align="left" valign="top"><div id=\"text-18\" class=\"header-widget widget…✉

You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.

Line 370, Column 61: character "\" is not allowed in the value of attribute "id"

…_2" align="left" valign="top"><div id=\"text-18\" class=\"header-widget widget…✉

It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.

Line 370, Column 79: an attribute value must be a literal unless it contains only name characters

…align="top"><div id=\"text-18\" class=\"header-widget widget_text\">

<div cl…✉
You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.

Line 370, Column 106: "widget_text" is not a member of a group specified for any attribute

…-18\" class=\"header-widget widget_text\"> <div class="textwidget">test</div>



This is what I have in my footer area:

HTML Code:
<?php bfa_widget_area('name=My widget area&cells=4&align=1&align_2=9&align_3=7&width_4=700&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>'); ?>

Copyright &copy; %current-year% %home% - All Rights Reserved


If you could shed some ideas, I appreciate your time,
Tracy

Last edited by juggledad; Dec 19, 2011 at 06:29 PM.
 

Bookmarks

Tags
add new widget areas, w3c validation

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Widget Area validation error in W3.org mimi Sidebars & Widgets 4 Dec 6, 2011 04:17 AM
Sticky footer not working on certain pages, plugin clash/error lakewooditsupport Center area post/pages 19 Nov 30, 2011 01:58 PM
[SOLVED] Error on bfa footer sinar Page & Category Menu Bars 7 Dec 9, 2009 12:14 PM
Parse error near the footer David Wallace Atahualpa 3 Wordpress theme 5 Oct 15, 2009 08:45 AM
XHTML Strict Validation Error, Possibly from comments.php cyboc Comments, trackbacks & pings 0 Sep 9, 2009 01:57 PM


All times are GMT -6. The time now is 06:00 AM.


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