• Resolved Doug

    (@nicoblog)


    Hello, may i ask why do you have this on the code?
    `<style type=”text/css”>
    <?php
    echo ‘i.’ ;
    echo ‘icon-‘;
    echo $icon;
    ?> {margin-right:5px;}
    </style>`
    The validator says:
    Error: Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)

    https://wordpress.org/plugins/stylish-top-author-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Obaid Hossain

    (@obaid2013)

    This code is used for the icon which is used beside the widget title.

    Thread Starter Doug

    (@nicoblog)

    Hi, i’ve removed all those lines from the php file and added this:
    codei.icon-android{margin-right:5px}code
    to my child theme css instead.
    It validates now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘not valid hml5’ is closed to new replies.