• Resolved wpfan1000

    (@wpfan1000)


    Hi,

    If I have eg:

    
    [catlist tags="training, learning, courses, beginner" excludeposts=this numberposts=10 conditional_title="Related posts"]

    Then I get:

    <ul class="lcp_catlist" id="lcp_instance_0">
    <h3>Related posts</h3>
    <li><a href="https://[mysite]/wordpress-com-vs-wordpress-org-compared-pros-and-cons-features-and-more/" title="wordpress.com vs ww.wp.xz.cn – Compared, pros and cons, features and more">wordpress.com vs ww.wp.xz.cn – Compared, pros and cons, features and more</a>  </li>
    </ul>

    So the h3 tag is INSIDE the ul tag and it should not be.

    This is because if I use css to indent the ul, then the h3 is also indented inside the ul, but the h3 should not be…

    Put another way, the ul tag should be the start of a series of li tags, but ul tag should not be the start of an h3 tag.

    It should be:

    <h3>Related posts</h3>
    <ul class="lcp_catlist" id="lcp_instance_0">
    <li><a href="https://[mysite]/wordpress-com-vs-wordpress-org-compared-pros-and-cons-features-and-more/" title="wordpress.com vs ww.wp.xz.cn – Compared, pros and cons, features and more">wordpress.com vs ww.wp.xz.cn – Compared, pros and cons, features and more</a>  </li>
    </ul>

    Please consider changing the code so that the h3 is before and outside of the ul….

    Thanks ahead of time.

    • This topic was modified 7 years, 9 months ago by wpfan1000.
    • This topic was modified 7 years, 9 months ago by wpfan1000.
    • This topic was modified 7 years, 9 months ago by wpfan1000.
    • This topic was modified 7 years, 9 months ago by wpfan1000.
    • This topic was modified 7 years, 9 months ago by wpfan1000.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug – h3 inside ul tag’ is closed to new replies.