Hide post follow button only for one topic
AnsweredHi all
How can I hide the post follow button depends on specific topic- I have two topics, I want to hide only from those posts which belongs to first topic. can someone know How can this get ?
我知道这是下按钮
{{subscribe}}
Advance Thanks
-
Official comment
Hi all
How can I change the follow button ?
Best regards,
Fiorella Alvarez
-
Follow the steps below:
1). Go to the Admin Guide and navigate the community_post_page.hbs.
2). Check the topic ID for the {{subscribe}} helper:{{#isnt topic.id 000000000000}} // 0000000 is topic ID which you need to replace with your topic ID.
{{subscribe}}
{{/isnt}}Screenshot for the same
3). Go to the community topic list page on preview mode and click the first topic for those posts you wanna hide on.4). You will reach the topic page.
5). You will get the topic ID in the searchbar:6). Copy the topic ID and replce the ID with000000000in the given code.
7). Now test on preview mode.
Related Posts:
Thanks
-
Thank you , It worked
-
HiFiorella Jiménez, for which template, you wanna change follow button?
There is{{subscribe}}helper you can check in the templates (.hbs) files:
article_page.hbs
section_page.hbs
community_post_page.hbs
community_topic_page.hbs
-
Hi Ifra,
For:
article_page.hbs and section_page.hbs
-
Go to thearticle_page.hbsfile, find{{subscribe}},you can add your custom button, you can remove it or do which you want.
Screenshot for the same:
Now go to thesection_page.hbsfile, find{{subscribe}},you can add your custom button, you can remove it or do which you want.
Screenshot for the same:
Your query is: How can I change the follow button ?
Tell me what do you wanna do?
Thanks
Pleasesign into leave a comment.
6 Comments