Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #697675

    on most of the enfold sites there are at the end of footer section some closing p tags which have no opening tag.
    i think it is only if using socket and the widgets.

    f.e on http://kriesi.at/themes/enfold/

    No p element in scope but a p end tag seen.
    From line 322, column 67; to line 322, column 70
    </div></p></div>

    mostly i can prevent this by disabeling the autop function of wordpress.

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

    what for is this link in the head section of the html? for example:
    <link rel='https://api.w.org/' href='http://kriesi.at/wp-json/' />

    this is afaik on every enfold generated page.

    #698145

    Hey Guenter!

    Thank you for using Enfold.

    1.) I’m sorry but I can’t find the paragraph tag in the markup. Could you please provide a screenshot? It should be breaking the layout of the page.

    2.) The link is automatically added by WordPress. It’s for the WP Rest API plugin. https://wordpress.org/plugins/rest-api/

    Regards,
    Ismael

    #698622

    well that is not so important – but since it exists now an official w3c html5 validator i’m nosy about enfold and the results.
    They only have two “faults” and a lot of advices concerning to role setting (header, footer, navigation do not need the role attribut etc.)
    The link i mentioned above and some closing p tags without opening one.
    for example on enfold theme demo page line 322

    #698630

    on every enfold page i disable the autop function of wordpress this closing p-tag is gone.
    without that little fault (and it is not a fault of enfold i think – Enfold Pages are html5 valide

    #699762

    Hi,

    Thank you for the info. I can see it now but I’m not sure why it renders a closing paragraph tag. Can you reproduce this issue on your installation? And are there any other sections where you see this unwanted p tag?

    Best regards,
    Ismael

    #699941

    if it is there it is allways in front of : </div></div></div><!– close content main div –>

    </p>
    </div></div></div><!-- close content main div -->	  
    Line 178     http://kriesi.at/themes/enfold-one-page-portfolio/
    
    </p>
    </div></div></div><!-- close content main div -->    
    Line 194     http://kriesi.at/themes/enfold-startup/
    
    </p>
    </div></div></div><!-- close content main div -->
    Line 182     http://kriesi.at/themes/enfold-hotel/
    
    </p>
    </div></div></div><!-- close content main div -->
    Line 166     http://kriesi.at/themes/enfold-spa/
    #700979

    Hi,

    Thank you for the info. That is peculiar, surprisingly, it doesn’t break the page. I will notify Kriesi.

    Are you able to reproduce the issue on your own installation?

    Best regards,
    Ismael

    #701436

    Yes – but as i described above – i can prevent this by removing autop function of WordPress:

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

    btw: there are sometimes some issues with f.e. : “no div tags within h tags”

    or on your enfold-creative-studio demo the duplicate ID : team ( in front of team grid and under the last grid)

    Edit: if you look to source code via Browser there is only a closing p tag.
    and https://validator.w3.org/ too only closing tag
    but on firebug :

    <footer class="entry-footer"></footer>
    </article>
    </div>
    <p></p>   
    </div>

    hm ???

    • This reply was modified 8 years, 1 month ago by Guenni007.
    #831524

    Dear Support,

    please validate this mentioned topic with the mentioned p-tag.

    </div></section></div><div style=’height:50px’ class=’hr hr-invisible avia-builder-el-2 el_after_av_one_full avia-builder-el-last ‘><span class=’hr-inner ‘ ><span class=’hr-inner-style’></span></span></div></p>

    View post on imgur.com

    Some plugins like tooltip plugins and some another repair misspelling, wrong encapsulated or unclosed tags or don’t work correct, if something is wrong. I have massive problems with such two plugins and enfold. If i use another themes, this error is not there.

    This may resulting in following stuff like corrupt footers.
    Please fix it, what is mentioned in many threads here and what the w3c validation check is telling to us.

    “Error: No p element in scope but a p end tag seen.”

    Thanks

    • This reply was modified 7 years, 3 months ago by Hokuspokus.
    #832301

    Hi seolotsen,

    On the screenshot you have an empty paragraph not an unclosed paragraph tag. That can be disabled, but disabling wpautop https://codex.wordpress.org/Function_Reference/wpautop

    Best regards,
    Victoria

    #832305

    hey victoria – nice but did you recognize the date of that post ?
    can be closed

    #832310

    Hi,

    the post is actual since 2016, I see the same as you, Guenni007

    The paragraph is not created by me.
    It comes from an element like hr-line or something else.
    If you compare source code and dev tool, than you see what is happen and what the W3C validator say.

    View post on imgur.com

    #832312

    Now, it’s a div inside p-tag which is forbidden for my understanding, what the interpreter say

    #833412

    but i guess in this case the tip of victoria is quiet the best. It comes from the autop function of wordpress.
    you can try it via functions.php of your child-theme:

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

    or if you only like to avoid autop in textarea element: make your own shortcode of textblock.php

    find line: guess on newest version it is line 201

    $params['innerHtml'] = "<div class='avia_textblock avia_textblock_style' data-update_with='content'>".stripslashes(wpautop(trim(html_entity_decode( $params['content']) )))."</div>";

    replace it by:

    $params['innerHtml'] = "<div class='avia_textblock avia_textblock_style' data-update_with='content'>".stripslashes(trim(html_entity_decode( $params['content']) ))."</div>";

    • This reply was modified 7 years, 3 months ago by Guenni007.
    #833491

    I assume that kriesi supplies clean code. I do not use child themes, nor will I change any codes manually at a few tens of clients.

    #835398

    Hi,


    @guenni007

    Thanks for pointing out the examples. That was very helpful.

    I could narrow down the problem but it needs some deeper investigation what really causes the problem and how to avoid it and/or repair it when it occurs (on already existing pages).

    Best regards,
    Günter

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.