Title: Post Title Class
Last modified: August 20, 2016

---

# Post Title Class

 *  [adventurenick](https://wordpress.org/support/users/adventurenick/)
 * (@adventurenick)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/post-title-class/)
 * The plugin is working great, except for the setting for “Post Title header type
   class name”
 * I’m trying to style the Post Title, but it looks like something is missing in
   featured-category-posts.php, so even when “Yes” is selected, nothing changes.
 * [http://wordpress.org/extend/plugins/featured-category-posts/](http://wordpress.org/extend/plugins/featured-category-posts/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [adventurenick](https://wordpress.org/support/users/adventurenick/)
 * (@adventurenick)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/post-title-class/#post-3512834)
 * Well, after bumbling around for a while I got the Post Title to style by replacing
   this:
 *     ```
       if(isset($feacpost_include_post_title) && ($feacpost_include_post_title == "Yes"))
   
       			{
   
       				if(isset($feacpost_post_title_header) && !empty($feacpost_post_title_header))
   
       				{$output.= '<'.$feacpost_post_title_header.' style="clear:none;">';}
   
       				else { $output.= '<h3 style="clear:none;">';}
   
       				$output.='<a style="text-decoration:none;" href="'.get_permalink().'">'.get_the_title().'</a>';
   
       				if(isset($feacpost_post_title_header) && !empty($feacpost_post_title_header))
   
       				{$output.= '</'.$feacpost_post_title_header.'>';}
   
       				else { $output.= '</h3>';}
   
       			}
       ```
   
 * with this:
 *     ```
       if(isset($feacpost_include_post_title) && ($feacpost_include_post_title == "Yes"))
   
       			{
       				$output.='<div';
   
       				if(isset($feacpost_post_title_header_classname) && !empty($feacpost_post_title_header_classname)){$output.= ' class="'.$feacpost_post_title_header_classname.'"';} else { $output.= ' style="padding:5px 0;"';}
   
       				{$output.= '<'.$feacpost_post_title_header.' style="clear:none;">';}
   
       				$output.='<a style="text-decoration:none;" href="'.get_permalink().'">'.get_the_title().'</a>';
   
       				if(isset($feacpost_post_title_header) && !empty($feacpost_post_title_header))
   
       				{$output.= '</'.$feacpost_post_title_header.'>';}
   
       				else { $output.= '</h3>';}
   
       								$output.='</div>';
   
       			}
       ```
   
 * Not sure if I did it right – it seems to work, but PHP is not my native tongue,
   so if I’ve done things backwards, please feel free to correct me!

Viewing 1 replies (of 1 total)

The topic ‘Post Title Class’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/featured-category-posts.svg)
 * [Featured Category Posts Widget](https://wordpress.org/plugins/featured-category-posts/)
 * [Support Threads](https://wordpress.org/support/plugin/featured-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-category-posts/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [adventurenick](https://wordpress.org/support/users/adventurenick/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/post-title-class/#post-3512834)
 * Status: not resolved