New Landing How can we help? Atelier Change bold blog posts subtitle

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Atelier
  • #233527
    GRAV
    Member
    Post count: 11

    Hi I want to change the subtitle in the bold style blog posts

    FROM: ‘By %author% in %category%’
    TO: ‘From %category% library’

    How do I do this?

    Attachments:
    You must be logged in to view attached files.
    #233602
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your child theme’s functions.php file:

    /* GET DETAILS
        ================================================== */
        if ( ! function_exists( 'sf_get_post_details' ) ) {
            function sf_get_post_details( $postID ) {
    
            	global $sf_options;
            	$single_author = $sf_options['single_author'];
            	$remove_dates  = $sf_options['remove_dates'];
    
            	$post_author    = get_the_author_link();
            	$post_date      = get_the_date();
            	$post_date_str  = get_the_date('Y-m-d');
            	$post_details = "";
    
            	if ( $single_author && ! $remove_dates ) {
            	    $post_details .= '<div class="blog-item-details"><time class="post-date" datetime="' . $post_date_str . '">' . sprintf( __( '%1$s', 'swiftframework' ), $post_date ) . '</time></div>';
            	} else if ( ! $remove_dates ) {
            	    $post_details .= '<div class="post-item-details"><time class="post-date" datetime="' . $post_date_str . '">' . $post_date . '</time><span class="author"> ' . sprintf( __( 'by <a href="%2$s" rel="author" itemprop="author">%1$s</a>', 'swiftframework' ), $post_author, get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '</span></div>';
            	} else if ( ! $single_author ) {
            	    $post_details .= '<div class="post-item-details"><span class="author">' . sprintf( __( 'By <a href="%2$s" rel="author" itemprop="author">%1$s</a>', 'swiftframework' ), $post_author, get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '</span></div>';
            	}
    
            	return $post_details;
            }
        }

    And edit the 3 lines

    – Kyle

    #233613
    GRAV
    Member
    Post count: 11

    Sorry, which 3 lines?

    #233618
    GRAV
    Member
    Post count: 11

    I don’t want any information on the author. I just want the post category.

    #233645
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try adding this to your functions.php file instead of the previous code

    http://pastie.org/10615921

    – Kyle

    #233686
    GRAV
    Member
    Post count: 11

    Beautiful. Check it out: https://fliint.org

    But could you please point out the exact line of code that declares the ‘From %category% Library’? So I know for the future.

    Also how can I change the search full screen overlay to be 100% opaque?

    Thank you so much, Asher.

    #233698
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Line 129

    Where is the full screen search?

    – Kyle

    #233706
    GRAV
    Member
    Post count: 11

    Excellent. Search icon should be there now.

    #233708
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add this to your custom css:

    .fs-search-open #fullscreen-search {
      background-color: rgba(247,247,247,1)!important;
    }

    – Kyle

    #233804
    GRAV
    Member
    Post count: 11

    Thank you.

    #233858
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

Viewing 11 posts - 1 through 11 (of 11 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