This topic has 3 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #53373
     taiger
    Participant

    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.
    Cheers

    Attachments:

    single-portfolio.php_.zip

    #53392
     sharmstr
    Moderator

    I 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 solution

    This 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.
    #53447
     taiger
    Participant
    This reply has been set as private.
    #53448
     sharmstr
    Moderator

    Its 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?