Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Derek Rippe

    (@dwrippe)

    It looks like you are using the Warp 7 framework by YOOtheme, if I’m not mistaken? They’ve probably created a custom function that is overriding the default comment_form function.

    It does look like the Warp 7 framework is available for free download, so I’ll download it tonight and see if I can figure out a way to make it work.

    It may take me a couple of days, so stay tuned.

    Thread Starter ilens

    (@aquilalatina)

    I look forward very much to your response, thank you.

    Plugin Author Derek Rippe

    (@dwrippe)

    So I’m only able to download and play with the Warp 6 framework, but this solution seems to be working with that so hopefully it’ll also work with Warp 7.

    The Warp framework has it’s own set of files for a lot of the WordPress functions, including the comments.php file. Per YOOtheme’s documentation, you can create a custom-version of the framework files:

    All warp system layout files for WordPress are located in /warp/systems/wordpress/layouts. So if you want to add some modification to let’s say the comments markup, just copy /warp/systems/wordpress/layouts/comments.php to the theme /layouts directory

    (via https://www.yootheme.com/themes/documentation/customizing/override-system-files)

    So what we need to do is copy the comments.php file from the /warp/systems/wordpress/layouts folder into the /layouts directory in your theme folder.

    After you’ve done that, open up the comments.php file you just copied and find the following line of code:

    <?php comment_form_title(__('Leave a comment', 'warp')); ?>

    Replace that line of code with:

    <?php
        $post_id = get_the_ID();
    
        if ( !empty( $post_id ) ) {
            $arg = get_post_meta( $post_id, 'ccft_post_comment_title', true );
        }
    
        if ( empty( $arg ) ) {
            $ccft_admin_options = get_option( 'custom_comment_form_title' );
            $arg = esc_attr( $ccft_admin_options['default_title'] );
        }
    
        echo '<h3>' . $arg . '</h3>';
    ?>

    Once you do that, the Custom Comment Form Title plugin should work for you. If it doesn’t, report back and we’ll try to come up with another solution.

    Thread Starter ilens

    (@aquilalatina)

    Hello, thank you you have been very fast and professional.

    I tried to make the suggested changes, but still does not work. It’s possible that the problem lies in my mistake (unfortunately they are not very good at these things).

    If you agree, if you have time and availability, I can grant you access to the control panel to make changes directly to the files.

    It may be helpful to you to have direct access to the Warp 7.
    Let me know, thank you.

    Plugin Author Derek Rippe

    (@dwrippe)

    I’d be happy to help further. I don’t want you providing any access or contact information here, however.

    If you don’t mind, let’s continue the conversation on my support forum where we can use personal messages to transfer that account information: https://www.media-cairn.com/forum/custom-comment-form-title/warp-7-framework-functionality/

    I’m going to leave this topic open, and once we have a solution I’ll repost it here for future reference.

    Plugin Author Derek Rippe

    (@dwrippe)

    Alternatively, if you want to copy the code from your comments.php file (the new one you created, in your /theme/layouts folder) into a pastebin.com bin, I can look and see if the code was changed correctly.

    Thread Starter ilens

    (@aquilalatina)

    I sent you a PM in your forum..

    Plugin Author Derek Rippe

    (@dwrippe)

    Just to update and close this topic:

    The solution presented above, regarding duplicating the comments.php file into a folder in the theme folder, and replacing the appropriate line of code, is indeed the solution for making this plugin work with the Warp 6 and Warp 7 framework.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Does not work’ is closed to new replies.