• Hi, I’m trying to style the first instance of the alx-posts differently from the rest, but it seems they share most of the classes especially for the <li> tag, now would it be possible to include an incremental class or id like post1,post2 etc, so that I can style it with css .widget_alx_tabs #post1 or .post1?

    I tried adding something like class=” <?php $post[‘post_num’]> but it doesn’t work, I assume I’d need to add a counter somewhere around here but I can’t get it to work.

    <div class="post-item-inner group">
    				<?php if($instance['posts_category']) { ?><p class="post-item-category"><?php the_category(' / '); ?></p><?php } ?>
    				<p class="post-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
    				<?php if($instance['posts_date']) { ?><p class="post-item-date"><?php the_time('j M, Y'); ?></p><?php } ?>
    			</div>

    also I’d like only the first post to contain an excerpt. can anyone help?

The topic ‘[Theme: Hueman]Alx-post widget styling’ is closed to new replies.