Widget in a single post in Newsmag?

Posted in: Newsmag
Post count: 42

Hello, how do i add a widget (raw HTML) to a post/article in Newsmag?

It’s really easy in Newspaper with tagdiv builder, can’t find a way in Newsmag.

Post count: 35449

Hi,
On Newsmag theme the tagDiv Composer can be used only for pages. For posts, the only solution will be to set it in sidebar widgets the Custom HTML element -> https://i.imgur.com/PkOhHzt.pngand assign that sidebar to posts.
Thank you!

Post count: 42

Thank you Calin. But i can’t put the disqus code in the sidebar widget. I need it after content.

Post count: 20688

Hi,

That is one of the main differences between Newspaper and Newsmag, the capability to edit templates with the composer.

The Newsmag theme provides only standard predefined templates, which will only display the elements that are defined in the template files. If you would like to display something after the content it would require editing the file corresponding to the post template you are using, and entering it there. I can mention how it can be done.

But before that, is it a shortcode that you would like to add? Or what kind of code exactly? There may be another way, which is to enter the code in article bottom ad spot in the theme panel https://i.imgur.com/iNdq8d2.png assuming the spot is not used for an ad. Or maybe they can both function from there.
If that does not work or is not possible for some reason, then the only option would be to enter the code in the post template file directly. A child theme can be used so the modification won’t be lost after a theme update. We can discuss more, let me know.

Thank you!

Post count: 42

This works (article bottom ad spot ni theme panel)! Thanks a lot for this!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newsmag’ is closed to new topics and replies.