Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hi,
thanks for the great portal theme.
But is there a way to add the numbers of comments for each article on the main page and archives?
Thank you
Hi Olaf
This would usually be a custom development task but let me see if I can help out:
1. You need a child theme: https://codex.wordpress.org/Child_Themes. If aren’t running one check that link. Your style sheet in the child theme can look look as follows:
We now need to add to the portal_post_on function, to do that we need to pass it through functions.php in the child theme. So create a blank file in your child theme, name it functions.php and paste the following in:
comments_popup_link is my addition there.
ZIP your portal-child folder and install via Appearance > Themes > Add New. You will need to redo any Appearance > Customize settings you may have been using.
If you want the finished child theme you can find it here: https://siteorigin.com/wp-content/uploads/2014/06/portal-child.zip