Matteo Russo Posted May 13, 2020 Posted May 13, 2020 Hello!ย I need to remove the commentย tab header (1 Comment etc) from my database record's template and leave only the comment body. I want my comment to be only the part in the blue box. I tried checking in my templates but I couldn't find the right one, which one do I have to edit? ย ย ย Thanks ๐ย ย
bfarber Posted May 13, 2020 Posted May 13, 2020 You could add the following CSS to your custom.css file to hide the tabs body[data-pagecontroller="page"] [data-controller="core.front.core.commentsWrapper"] ul[role="tablist"] { display: none; } ย Matteo Russo 1
Matteo Russo Posted May 13, 2020 Author Posted May 13, 2020 (edited) Thanks! Worked, but thinking I'd like to remove also the container (padding, border etc) ๐ย ย Edited May 13, 2020 by Matteo Russo
bfarber Posted May 14, 2020 Posted May 14, 2020 body[data-pagecontroller="page"] [data-controller="core.front.core.commentsWrapper"] .ipsTabs { padding: 0px; } that should do it, but play around with the inspector in your browser to get an idea of whether that gets you what you want or not Matteo Russo and Joel R 2
Recommended Posts