There is a block with the description below. Now it’s done so that when you click on a paragraph, the description pops up in a popover and when you click outside this place, it hides. How to make this text can be highlighted? Now he is hiding when trying to highlight text.

<p class="excerpt" tabindex="0" data-toggle="popover" data-container="body" data-trigger="focus" data-content="<?php echo $excerptcat ?>" data-placement="top"> <?php echo substr($categories_item->description, 0, 40) ?> <br><span>Read more</span> </p> <script> $('[data-toggle="popover"]').popover(); </script> 

    1 answer 1

    If you remove the data-trigger="focus" then the popover will hide only when you click on the paragraph again and you can select text.

    How here

    • Yes, but it is necessary that it disappear when you click anywhere else and + to this is also copied :) - Vlad