I want Announcer on Homepage only please ?

User avatar
Earthwake
Posts: 1
Joined: 3 years ago

I want Announcer on Homepage only please ?

Postby Earthwake » 3 years ago

I can't see anywhere I can change Announcer appearing on every one of my pages in the settings section. I just want it on the Homepage and nowhere else. How can I achieve this please ?

Sorry if this is a dumb question...I'm new to all of this folks !

Thanks in Advance :D
User avatar
vaakash
Site Admin
Posts: 733
Joined: 6 years ago
Location: India
Contact:

Re: I want Announcer on Homepage only please ?

Postby vaakash » 3 years ago

Hello,

Currently there is no inbuilt feature to show only in home page. In future I'll add this feature. For now, please do a small mod.

Use the latest version of the plugin and add the below line in "announcer.php" file in line no 126

Code: Select all

if( !is_home() ) return;


Thank you.
User avatar
Gleedaniel13
Posts: 7
Joined: 3 years ago

Re: I want Announcer on Homepage only please ?

Postby Gleedaniel13 » 3 years ago

I did not get your point about the announcer. What do you mean with it specifically?