Forums

php if...?! how to make an element load/not load based on post_count? (2 posts)

  1. jpjp
    Member
    Posted 1 year ago #

    So my custom scrollbar is finally working, but I am trying to get it to only load when there are more than 2 posts displayed. This is totaly wrong but something this simple would be great:

    <?php if ( $post_count > 2 ) ?>
    <div id="track2"><div id="handle2">>>>>></div></div>
    <?php endif; ?>

    Here's the link to what it looks like when it comes up right.

    Here's what I'm trying to avoid!

    Thanks a lot and I hope this makes sense... I've been at it for a while and just can't figure it out.

  2. jpjp
    Member
    Posted 1 year ago #

    Are we allowed to bump?

Topic Closed

This topic has been closed to new replies.

About this Topic