redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Error on HTML validation

Open genethic opened this issue 12 years ago • 52 comments

Google fonts link doesn`t have a title attribute and this cause an error when validating the HTML. Can you fix this please?

genethic avatar Mar 03 '14 19:03 genethic

You're going to have to be WAY more specific, because I don't know what this means in and of itself.

kprovance avatar Mar 03 '14 23:03 kprovance

The google fonts link is added in the head and in the footer of my wordpress. And this last, cause an error when I validating my web. See here.

genethic avatar Mar 05 '14 12:03 genethic

We pushed an update for this. v3.1.8.12. Please update and try validating again.

kprovance avatar Mar 07 '14 18:03 kprovance

Hi! Can you tell me what file/s I have to update? I have change ReduxCore and sample-config.php, my panel display 3.1.8.15 version but I have the same error when I validate.

genethic avatar Mar 11 '14 08:03 genethic

Sorry, but after update the plugin this validation error continue. The output of Google fonts link don't validate.

genethic avatar May 01 '14 21:05 genethic

Fix pushed. Should be fine now. Will push to WP.org next week.

dovy avatar May 01 '14 21:05 dovy

The title attribute doesn't fix the error. I don't now what is the problem.

genethic avatar May 01 '14 22:05 genethic

You didn't update redux with my github version. But yea, it seems like it's a character issue. Hmm.

dovy avatar May 01 '14 22:05 dovy

Ok, just pushed a fix. I think that will fix the first error. Can you verify?

dovy avatar May 01 '14 22:05 dovy

Ok, looked again at your site. You have an old version of redux or something. There's double google fonts being sent out and one we'd don't even use now.

Please update to the code on the repo and it should work. :)

dovy avatar May 01 '14 22:05 dovy

Yes, it fix the first error, you are right! Thanks, I can't update now, I will do it when I get home, I hope it works, I love my code to validate correctly... ;) Thanks again!

genethic avatar May 01 '14 22:05 genethic

You are so welcome.

If you're happy with Redux please leave a review: http://wordpress.org/support/view/plugin-reviews/redux-framework Also please like us on Facebook: https://www.facebook.com/ReduxFramework

dovy avatar May 01 '14 22:05 dovy

Sorry @dovy but now, after update, my web doesn't recognize selected google fonts. The link go to correct url if you click on, but in my stylesheet I can't use it: This is the web: http://www.codetocode-developments.com/t-one/ the slider caption font is one of the problem.

genethic avatar May 02 '14 17:05 genethic

Umm, that shouldn't cause a problem. Choose a more unique font like Aladin or whatever it is.

dovy avatar May 02 '14 17:05 dovy

It doesn't work with aladin but works fine with open sans...

genethic avatar May 02 '14 17:05 genethic

... That makes no sense at all.

dovy avatar May 02 '14 17:05 dovy

This is my typography code: $this->sections[] = array( 'icon' => 'el-icon-font', 'title' => __('Typography', 'redux-framework-demo'), 'fields' => array(
array( 'id'=>'body-font', 'type' => 'typography', 'title' => __('Body', 'redux-framework-demo'), 'google'=>true, 'output' => array('body'), 'line-height' => false, 'text-align' => false, 'font-style' => false, 'default' => array( 'color' => '#2F2F33', 'font-size'=>'16px', 'font-weight'=> '300', 'font-family'=>'Open Sans', ), ), array( 'id'=>'headers-font', 'type' => 'typography', 'title' => __('Headers', 'redux-framework-demo'), 'google'=>true, 'output' => array('h1', 'h2', 'h3', 'h4', 'h5', 'h6'), 'line-height' => false, 'text-align' => false, 'font-weight'=> false, 'font-style' => false, 'default' => array( 'color' => '#26292a', 'font-family'=>'Merriweather', ), ), array( 'id'=>'slider-font', 'type' => 'typography', 'title' => __('Slider Caption', 'redux-framework-demo'), 'google'=>true, 'output' => array('.caption-wrap .line-2', '.caption-wrap .line-3', '.caption-wrap .line-5 a', '.navbar-nav>li>a ', '.service-wrap .service-btm a'), 'line-height' => false, 'text-align' => false, 'font-style' => false, 'color' => false, 'font-size'=> false, 'font-weight'=> false, 'default' => array( 'font-family'=>'Montserrat', ), ),

            )
        );

genethic avatar May 02 '14 17:05 genethic

This is a two month old closed ticket, no wonder I can;t find it. Please, next time, open a new one with the necessary information (https://github.com/ReduxFramework/redux-framework/blob/master/CONTRIBUTING.md).

I tried your code, the output produces this:

<link rel="stylesheet" id="options-google-fonts" title="google-fonts" href="//fonts.googleapis.com/css?family=Open+Sans:300%7CMerriweather%7CMontserrat%7C&amp;v=1399053694" type="text/css" media="all" />

I opened that link and all the google data is in there. So, what exactly is the issue?

kprovance avatar May 02 '14 18:05 kprovance

The problem is when I use this fonts on my stylesheet it doesn't work.

genethic avatar May 02 '14 18:05 genethic

Yea, exactly. It works fine from what I see...

dovy avatar May 02 '14 18:05 dovy