Viewing 1 replies (of 1 total)
  • Thread Starter adventurenick

    (@adventurenick)

    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.