-
Author
-
April 6, 2015 at 10:59 #53373taigerParticipant
Hi I tried the code below, but nothing happened.
No comment box etc, any suggestions.
Regards T
———————————————–
Hello,
Here are the steps to enable portfolio comments:
1. You will need to add the following code snippet inside our “kleo-child/functions.php”:
1
2
3
4
add_action(‘init’, ‘kleo_add_portfolio_comments_support’);
function kleo_add_portfolio_comments_support() {
add_post_type_support( sq_option(‘portfolio_slug’), ‘comments’ );
}
2. You will need to add the single-portfolio.php file in your “kleo-child” folder, which you’ll find it attached below.3. Because comments support was disabled until now, under the edit page of a portfolio item you will find a meta box called “Discussion”, and you’ll have to edit each of your previous portfolio posts and enable the comments. All new posts will automatically be enabled by default.
Hope this helped you out, and sorry for the late reply.
CheersAttachments:
single-portfolio.php_.zip
April 6, 2015 at 16:34 #53392sharmstrModeratorI just went through the steps on my test site and it worked.
Go through them again and make sure you clear your cache/cdn.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
Attachments:
You must be logged in to view attached files.April 6, 2015 at 20:55 #53448sharmstrModeratorIts working now. The code that was given in the other example was using the portfolio slug which in most cases will work, but since you have a custom name, it didnt.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.