Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1264463
    melman
    Participant

    I tried the “enable_excerpt=”true”” in the shortcode but it dosen’t work. What do I need to Do? I tried googling, but none of the codes I found worked.

    Best regards

    #1264482
    melman
    Participant
    This reply has been marked as private.
    #1264756
    Rad
    Moderator

    Hi there,

    You can try this one for sharing functionality for posts.

    add_filter('the_content', function( $content ) {
    return is_singular('post') ? $content . do_shortcode('[share title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]') : $content;
    }, 999999999 );
    
    add_filter( 'the_content', 'custom_author_code', 9999999999 );
     
    function custom_author_code($content) {
       if ( is_single() ) {
          return $content . do_shortcode('[author title="Om skribenten"]');
       } else {
          return $content;
       }
    }
    

    Recent posts element has no excerpt, the one you see has existing customization that allows excerpt. Hence, just adding enable_excerpt has no effect. You can then try Essential Grid plugin and its skin builder, it has more options and doesn’t require code-level customization.

    And about the font size, I guess you’re referring to recent posts titles then please add this CSS to Admin > Appearance > Customizer > Custom > CSS with your preferred size.

    h3.h-recent-posts {
    font-size: 12px;
    }

    Thanks!

    #1265051
    melman
    Participant
    This reply has been marked as private.
    #1265053
    Christopher
    Moderator

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

  • <script> jQuery(function($){ $("#no-reply-1264463 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>