WordPress.org

Ready to get started?Download WordPress

Forums

Category Posts Widget
Bold Post Title (8 posts)

  1. anindyaray
    Member
    Posted 2 years ago #

    How do I make to display the Post title Bold ?

    This is a awesome plugin .

    http://wordpress.org/extend/plugins/category-posts/

  2. anindyaray
    Member
    Posted 2 years ago #

    Oh sorry, did it . Thanks :)

  3. Roland78
    Member
    Posted 2 years ago #

    How did you made this?Also can i change the post tittles fonts?

    Thanks

  4. anindyaray
    Member
    Posted 2 years ago #

    File: cat-posts.php

    search this

    <a class="post-title" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>

    Replace with

    <a class="post-title" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent link to <?php the_title_attribute(); ?>"><strong><?php the_title(); ?></strong></a>

    yes font can be changed, but if you know a little bit of html or css, you would know now where to add the code, but if you dont then google about how to use font through css with html and add it before or after it added the tag.

    Thank you :)

  5. Roland78
    Member
    Posted 2 years ago #

    Thank you my friend.I search to all my Css files of my theme and also all php files etc..
    Still can't find the size font code ofr this plugin..
    Any recomendations will be apreciated.

  6. lukodp
    Member
    Posted 2 years ago #

    This plugin uses your theme style.css to style post titles. Use firebug or source code to find out the div ID for your category posts widget, then add in style.css of your child theme something like this:

    #widget divID {
    }
    .post-title {
    styling code...
    }

    Simple add div ID and desirable styling code and that's it!

  7. slowfoodc
    Member
    Posted 2 years ago #

    Extremely helpful! For reference, here was what i used for my code:

    #widget categoryposts-3 {
    }
    .post-title {
    	text-align: center;
    	font-weight: bold;
    	margin: 0px;
    	padding: 0px;
    }
    .post-date {
    	text-align: left;
    	font-style: italic;
    	margin: 0px;
    	padding: 0px;
    }
    .cat-post-item {
    	text-align: left;
    }
  8. sovaptizza
    Member
    Posted 2 years ago #

    It works. I confused how to find it but then understand that it is widget — not settings for all widgets. I have what I dreaming about. Thank you so much.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic