Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Try adding this code to your theme’s functions.php file to deactivate comments in the Carousel view:

    function tweakjp_rm_comments_att( $open, $post_id ) {
        $post = get_post( $post_id );
        if( $post->post_type == 'attachment' ) {
            return false;
        }
        return $open;
    }
    add_filter( 'comments_open', 'tweakjp_rm_comments_att', 10 , 2 );
    Thread Starter trevorcoultart

    (@trevorcoultart)

    Thanks for the response.

    I’m rather new to all this lark, have just tried this with no success. I’ve removed the code again for now. Is there anywhere specific in the functions.php file I should be placing this?

    (Sorry, I have a very basic HTML knowledge that’s about 15 years out of date and have never previously got involved with coding of any sort since then.)

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I you do not feel comfortable editing PHP files, try installing this small plugin instead of editing your theme files:
    https://i.wpne.ws/PUTp

    Thread Starter trevorcoultart

    (@trevorcoultart)

    Thanks so much. Will try that when I get home.

    Thread Starter trevorcoultart

    (@trevorcoultart)

    Jeremy, that is brilliant, and has done just what I asked. You’ve been a great help.

    I wonder if I could ask just one more thing. though. (Sorry!) Your plug-in has disabled the comments box itself, but I still have a file name and a “view full size” box showing under each photo.

    (“Website 30” in this example)
    https://coultart.com/?page_id=451#jp-carousel-399

    Ideally I’d like to get rid of those as well so the only visible elements are the photograph and the left/right arrows.

    If you could help me with that, too, I would be absurdly grateful.

    Many thanks,

    Trevor

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    You can hide these elements with CSS. Try adding the following CSS to your theme stylesheet, or to your custom CSS editor under Appearance > Edit CSS in your dashboard:

    .jp-carousel-left-column-wrapper, .jp-carousel-image-meta {
            display:none;
    }
    Thread Starter trevorcoultart

    (@trevorcoultart)

    You, Sir, are an absolute superstar.

    Many, many thanks. Now I can put the time in to get all the content sorted and in the right places, knowing it’s going to be worth the effort.

    Many, many thanks again.

    Trevor

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Comment box under each photo in carousel slideshow’ is closed to new replies.