HTML – how can I show tooltip ONLY when ellipsis is activated

I have got a span with dynamic data in my page, with ellipsis style. .my-class { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; width: 71px; } <span id=”myId” class=”my-class”></span> document.getElementById(‘myId’).innerText = “…”; I’d like to add to this element tooltip with the same content, but I want it to appear only when the content is long … Read more

Change tooltip in tag cloud

How to change tag tooltip to tag Description? I tried and my code is mentioned below. function title_text( $description ) { return sprintf( _n(‘%s topic’, ‘%s’, $description), $description ); } wp_tag_cloud( array( ‘topic_count_text_callback’ => ‘title_text’) ); This is not working. Can any one please check this code and find me a correct solution? 1 Answer … Read more

Jquery in Child Theme

I am new to WordPress and I need help with integrating my own jquery into a child theme. I have this jquery tooltip which works but I want to include it into my wordpress child theme. Have a look at the source code for this: <script src=”https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js”></script> <script src=”js/jquery.balloon.js”></script> <script> $(document).ready(function() { $(‘.sample’).balloon({ position: “left” … Read more