A Few Questions

Posted in: Newsmag
Post count: 10

I have a few questions about how to customize this theme:

1) How to add news ticker to single post pages , and change news ticker (Trending Now) title
2) Where to replace social share buttons with my own buttons from addthis
3) How to hide related articles/more from author section on single post
4) How to hide back to top arrow button from bottom right of screen

Post count: 6600

Hi,

!. You can use the do_shortcode() function and add the shortcode for the news ticker directly into the post template, like this:

First go to VC page builder and customize the ticker then switch to classic mode and get the ticker shortcode: http://screencast.com/t/04wufgypnN1I and add it to the loop-single.php file like this: http://screencast.com/t/1KuOePag
Result: http://screencast.com/t/IHXIudCMfY9k
For changing the “Trending Now” title you can use the translation panel and change it like this: http://screencast.com/t/NQuwThYX or hard coded, like this: http://screencast.com/t/4RBappdbLltH

2. You can disable the sharing and like/tweet buttons from theme panel: http://screencast.com/t/wsaMNsoa7ct then add you own using shorcodes or other method and place them into the post template replacing the buttons: http://screencast.com/t/HjUfJerVcW

3. From theme panel > post settings, like this: http://screencast.com/t/uaZi1AjF0a
4. Use this custom css in theme panel > custom css field:

.td-scroll-up {
display: none;
}

Thanks

Post count: 52

Lucian, by the way, it would be nice to have an option in point 3. There are sites with no authors pages. So it is necessary to have Related post section under each publication, but not to have Other publications of this author. If you include this point into the following update, it would be very helpful.
Vladimir

Post count: 10

Thanks! Also, is it possible to place the ticker in the same format as it shows on the homepage? Right below the menu with the same width of the menu?

Post count: 10

And is it possible to hide the single post ticker from mobile devices, so it only shows on Desktop?

Post count: 6600

Hi,


@Novaque
Thanks for your suggestion I will add this on our feature requests list and we will consider it for future updates.


@gmdirect
Try to add it in the post template at the top of the loop-single.php file or in the single.php file , like this: http://screencast.com/t/R6Yno1Tyf
To hide it on mobiles use this css:

@media (max-width: 767px) {
.td_block_trending_now {
display: none;
}
}

Thanks

Post count: 80

Hi @Lucian , I can not get your @gmdirect solution to work in Newsmag. Can I get the whole code as it should sit in single.php ? I would like to have that Trending Now ticker on all post pages, so any visitor, to any post will see announced content. Thanks.

Post count: 9544

I could not get the ticker to work on post pages either; a later reply from admin said it wasn’t designed to do that, and might not work at all on single post pages.

Post count: 80

Thank you for the quick reply @Christopher – I tried hard to get it to execute the short code in <php given the above information. I was hoping it was just me and my noobness. Maybe there can be a site wide trending now ticker that can be enabled in a future update?

Post count: 80

Also, I was trying to make this change using child theme *.php files. Maybe that is a mistake and I need to make the change to the original theme files? What do you think?

Post count: 1291

Hi,

Try the following code – http://screencast.com/t/FR7ALJVvZ9Q

<div class="td-container">
    <div class="td-container-border">
        <div class="td-pb-row">
            <?php echo do_shortcode('[vc_row][vc_column width="1/1"][td_block_trending_now limit="5"][/vc_column][/vc_row]');?>
        </div>
    </div>
</div>

Result – http://screencast.com/t/QGjlSFMaTTgY

Thank you, Emil G.

  • This reply was modified 11 years by Emil G.
Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newsmag’ is closed to new topics and replies.