ma5noo2 ma5noo2 - 2 months ago 6
CSS Question

i can't modify the css of integrated WordPress code

I have a static web page which I use as my main homepage. I am designing the page with HTML and CSS code with some PHP code integrated from My WordPress.
The last integrated code is the code to display the recent 3 posts. It displays the posts, but I can't modify the result with CSS. Here is the PHP code:

<?php
$args=array('numberposts'=>3,'post_status'=>"publish",'post_type'=>"post",'orderby'=>"post_date");
$postslist = get_posts( $args );
echo '<ul class="latest_posts">';
foreach ($postslist as $post) : setup_postdata($post);
?>
<li>
<?php the_post_thumbnail('medium'); ?><br/>
<a href="<?php the_permalink(); ?>" title="<?php the_title();?>"> <?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>


I have tried everything in CSS, naming
div
, naming
span
, even using
ul
in CSS and nothing happens. It keeps it the same as it is.

Answer

use this on your custom css file

   ul.latest_posts{
    list-style: none !important;
    }
Comments