Hello Support,
We want to edit CATEGORY TEMPLATE, as we want to add tickertape to Category Templates which we create.
For example #
http://grbnnews.com/category/grbn-initiatives/return-on-investment-grbn-initiatives/ page is create using Category Templates.
And
http://grbnnews.com/grbn-initiatives/return-investment-grbn-initiatives/ page is create using VC.
We want this # http://www.awesomescreenshot.com/image/2106709/028bc044d1c466b21336d1a47b89b296, We want to add section which is in Red Box, We have to use short code to add that.
Pls advice, how we can do that.
Kind Regards
Tarun
We only want to add tickertape for http://grbnnews.com/category/grbn-initiatives/ section.
We only want to add tickertape on #
1. http://grbnnews.com/category/grbn-initiatives/100-day-challenge-giving-back-grbn-initiatives/
2. http://grbnnews.com/category/grbn-initiatives/return-on-investment-grbn-initiatives/
3. http://grbnnews.com/category/grbn-initiatives/learning-grbn-initiatives/
4. http://grbnnews.com/category/grbn-initiatives/trust-participant-engagement-grbn-initiatives/
We try editing category_templates files, But that add tickertape to all other pages as well.
Hello,
In order to add a custom widget to a category page you will need to edit the category template files here: https://www.screencast.com/t/i7Vc3Zah This will add the tickertape on all categories that use the template you edit. If you want to add it on specific category pages you should use a wordpress function and wrap the code in a condition like for example:
https://developer.wordpress.org/reference/functions/is_category/
if(is_category( 'test' )){your code here}
This code will only affect the test category
Thank you!
When we add above code, we get error as # Parse error: syntax error, unexpected ‘id’ (T_STRING) in /home/grbnnews/public_html/wp-content/themes/Newspaper/includes/category_templates/td_category_template_4.php on line 17
Hi,
Well it depends on how you add the code. You will need basic coding skills top do it. Maybe the place yopu insert the code does not have php tags or maybe you added the code inside other tags. Sorry but you will have to get someone code savvy to help you out as we can guide you on what needs to be done but we cannot do it for you.
Thank you for your understanding.