Hi,
If you were trying to insert the widget in your theme file you would need to use the following code :
<?php if (function_exists (news_announcement)) news_announcement(); ?>
For pages/posts you should use the following shortcode :
[news-announcement group="sample"]
Have a check with it and do let us know your views.
Hi,
I was using this PHP function before but since the update nothing show in my theme. :/
Hi,
Sorry, for the inconvenience caused, the php function was updated for the current version, would you please try adding the below php function to your theme file:
<?php if (function_exists ('news_announcement')) news_announcement(); ?>
Have a check with it and do let us know your views.
Hi,
Have you tried deactivating and then again activating the plugin.
Have a check with it and then get back to us if still the issue persists.
Unfortunately, I already tried that.
Hi,
Could you please make sure that the widget is placed in the active sidebar and then trying adding the php function in your theme file.
The php function requires the widget to be present in your active sidebar.
Have a check with it and do let us know your views.
Hi,
it works when adding the widget but I don’t want this. The scroll announcements is used just after a home slider… Before the update I was able to use PHP function without any trouble. If it can’t be possible now, could you give me a link to the previous version?
Hi,
We have noted the issue and would try to resolve it as soon as possible
Also, you can download the previous version from the developers tab here is the link : News Announcement Scroll 8.7.1
Go to other versions and click 8.7.1
Have a great day!
Hi,
thanks for taking care of it. Check your review page. 😉
Hi,
We have resolved the issue. You can upgrade to the latest version of News Announcement Scroll i.e 8.8.2
Have a great day!
Hi,
It’s great that your issue has been resolved.
Please do let me know if i can be of any help to you in future.
Have a great day!
Hi,
I am using a Genesis theme which has footer 1,2,3,4. If I place the News Announcement widget on Footer 1 (left) it shows just fine. But if I try it from any other footer 2,3,4 it doesn’t show. I tried using a shortcode widget using your shortcode and it doesn’t show. I tried deactivating the plugin and even removing it but still not working.
I saw this on your FAQ but I am not sure where to place this code. I tried to put it at the bottom of the functions.php page and it broke WP.
How to add News Announcement Scroll widget into my theme?
Use this code, <?php if (function_exists (‘news_announcement’)) news_announcement(); ?> to add the plugin to your theme file.
JD