Viewing 4 posts - 1 through 4 (of 4 total)
  • #112128
    Rautureau
    Member
    Post count: 22

    Hi there,

    I have customized the grid version of the blog in Neighborhood. I just need your help for two lithe things:

    1° I would like to have the category of the post between the post image and the post title (on the blog page, not on single post). That also link to the category page.

    2° I would like to insert a [hr] between the post title and the excerpt content but I don’t find what code insert and where…

    Thanks by advance!

    Ben

    #112227
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide your blog page url?

    -Rui

    #112235
    Rautureau
    Member
    Post count: 22
    This reply has been marked as private.
    #112412
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    1- Open to edit sf-posts-formats.php at /includes/swift-framework/sf-content-display/

    Find this code:-
    if ($show_title == "yes") {
    				if ($post_format == "link") {
    				$post_item .= '<h4 itemprop="name headline">'.sf_link_post($postID).'</h4>'; 	
    				} else {
    				$post_item .= '<h4 itemprop="name headline"><a href="'.$post_permalink.'">'.$post_title.'</a></h4>'; 				
    				}
    			}
    
    Change to:-
    if ($show_title == "yes") {
    				if ($post_format == "link") {
    $post_item .='<span>'.$post_categories.'</span>';				
    $post_item .= '<h4 itemprop="name headline">'.sf_link_post($postID).'</h4>'; 	
    				} else {
    $post_item .='<span>'.$post_categories.'</span>';
    				$post_item .= '<h4 itemprop="name headline"><a href="'.$post_permalink.'">'.$post_title.'</a></h4>'; 				
    				}
    			}

    2- Use this custom css code for hr line.

    .recent-post h5 {
        border-bottom: 2px solid #000 !important;
        padding-bottom: 4px !important;
    }

    Thanks 🙂
    With Best Regards
    Mohammad

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register