Align Trending Box

Posted in: Newspaper
Post count: 186

Plz i discovered that the trending box is not align with the site elements to the left hand side, i want it to be on a straight line down with other elements

Post count: 23312

Hello willysawa,

Please provide your website URL so I can inspect in closer and also, please provide more details about what you want to achieve because I do not understand very good. Also, you can provide more useful screenshots.

Thanks.

Post count: 186

You can see the trending box is on a straigh line with the headlines

http://teamreporters.com/

Post count: 23312

Hello willysawa,

Please try to use a bit of CSS code to align the Trending Now feature. Place the below code in Theme panel->Cusotm CSS area.

The code is ->

.td-trending-now-wrapper {
padding-left: 25px;
}

The result -> http://screencast.com/t/9S9NscfC45

Thanks.

Post count: 186

Please is there a way i can place the trending box above the main menu and also the trending box to appear on all my post, just the way the menu is appearing everywhere

Post count: 23312

Hello willysawa,

If you want to add this feature for your side above your menu, you have to use the do_shortcode method in order to achieve as you wish. You have to add the following snippet of the code in header-menu.php file, like this ->
http://screencast.com/t/8XbhMLA0rfZ and the code is ->
The result you should see here -> http://screencast.com/t/HfWKKiEnOF

Thank you for the message!

Post count: 186

Thanks i got, is there a way i can make be directly on the menu, as the gap is to wide between the trending box and the menu

Post count: 6535

Hi

Try this css in theme panel > custom code > custom css:

#td-header-menu .td_block_trending_now{
padding-bottom: 0;
}

  • This reply was modified 10 years by Andrei L..
Post count: 186

Thanks,

Now that am using the trending directly in the theme, how do set the number of post to appear and also to select the category to display

Post count: 6535

Hi

You need to generate a shortcode which will contain all settings for trending now block. To achieve that add the block on a blank page then set it as you want using block settings: http://screencast.com/t/knqeahy7F After everything is set switch in back-end editor copy the shortcode and paste it inside do_shortcode function http://screencast.com/t/0d4T4rUyal0 Here is an example:

<?php echo do_shortcode('[td_block_trending_now category_id="21" limit="9"]');?>

Thanks!

  • This reply was modified 10 years by Andrei L..
Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.