Okay
  Public Ticket #2167624
How to change the number of posts in trending post at the header?
Closed

Comments

  • Noam Bruchim started the conversation

    1.How to change the number of posts in trending post at the header?

    2.How to change the title at trending post to be two words in the title and not just one word?

    3.How to add some category posts to the front page?

    4.What do you recommenced to use? static page or lasting posts?

  •  330
    Brian replied

    1. You can specify this in the theme options. Let me know if you can't find this option.

    2. Again, in the theme options.

    3. Use the front page builder in the theme options to add custom blocks any way you want.

    4. Static page.

    Please read the theme documentation. It's very helpful and explains all of this. Thanks.

  • Noam Bruchim replied

    1. didn't find it, I read the documentation

    2. didn't find it, I read the documentation and check all settings

    3. found it thanks

    4. OK, thanks

  •  330
    Brian replied

    1. Sorry about that, IĀ forgot you have to change this in the code. Edit the inc/header.php file within the theme folder and find line 83:

    <?php echo do_shortcode('[trending position="inline" suppress_actions="true" postsperpage="6"]'); ?>

    Change the postsperpage="6" to any number you want.

    2. Edit the functions/shortcodes/trending.php file within the theme folder at line 112:

    $title = ( !empty( $title ) ) ? $title : __('Trending', IT_TEXTDOMAIN);

    You can change the Trending word to whatever word you want it to be.

  • Noam Bruchim replied

    1. working

    2.I will explain:

    for now the length for the title of post that in trending posts is for one word per row, I want to change it to be 2 words in one row.

    see attachment.

    thank you.

    Attached files:  2 words.jpg

  •  330
    Brian replied

    Ah yes, now I see. Sorry for misunderstanding. Add this to your custom css theme option:

    body .compact-panel .article-info {padding-left:0!important}