Jul 06, 2020 10:54 am
Hi there,
I would like to amend the following files:
/home/jdclab/public_html/wp-content/plugins/wpforo/wpf-includes/class-activity.php
by adding an attribute (a class) to an anchor tag.
I tried to use child theme and implement the /class-activity.php/ file to public_html/wp-content/themes/ion-ap3-child/wpforo/wpf-includes/, but no use.
I tried to us js in function by adding the following code to my function.php, but no use:
<script>
jQuery(document).on('ready', function() {
jQuery(".wpf-notification-content a").attr('class', 'push-page'); });
</script>
Can you suggest me a way?
Thanks
Patrick
10 Replies
Jul 07, 2020 7:55 am
Hi @pyue6299,
The correct and update-safe way to customize wpForo template file is this:
https://wpforo.com/docs/root/forum-themes/theme-customization/
Jul 07, 2020 9:20 am
so do i put class-activity.php to:
/home/jdclab/public_html/wp-content/plugins/wpforo/
Your website seems to only apply to wpforo themes only?