Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9148943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:24:24+00:00 2026-06-17T11:24:24+00:00

I am using qTip2 to handle some tool tips on my site. I have

  • 0

I am using qTip2 to handle some tool tips on my site. I have the following code inside a template for the pages it applies to:

HTML

<div class="overview"><a href="#"><img class="border-gray" src="src.jpg"></a></div>
<div class="estimate"><a href="#"><img class="border-gray" src="src.jpg"></a></div>
<!-- More HTML similar to above -->

JS

$('.overview').qtip({
  content: 'Overview',
  position: {
    my: 'bottom center', 
    at: 'top center'
  },
   style: {classes: 'qtip-tipsy'}
});
$('.estimate').qtip({
   content: 'Estimating',
   position: {
     my: 'bottom center', 
  at: 'top center'
  },
   style: {classes: 'qtip-tipsy'}
});
//More JS as above

On the individual pages I would like to have the tool tip visible if the class correlates with the page. IE: site.com/overview would have the tool tip with the class of overview always visible. As would site.com/estimate have the tool tip estimate visible.

I have attempted to add this code to the page but it doesn’t work:

$('.overview').qtip({
   hide: false
});

What I am after is when the page loads the tool tip is visible. No mouse over etc is required. The visible tool tip will depend on what page is visible. IE: /overview = .overview tool tip.

How can I achieve this?

UPDATE

The following code will achieve what I am looking for:

$('.overview').qtip({
   content: 'Overview',
   position: {
     my: 'bottom center', 
     at: 'top center'
},
  show: {
    ready: true
},
  hide: false,
  style: {classes: 'qtip-tipsy'}
});

However this portion of the code is in a template and not editable on the page level:

$('.overview').qtip({
  content: 'Overview',
  position: {
    my: 'bottom center', 
    at: 'top center'
  },
   style: {classes: 'qtip-tipsy'}
});

If I try this below the above code it doesn’t work:

$('.overview').qtip({
    show: { ready: true },
    hide: false

}); 

How do I combine the two if one is not editable on the page level? IE: How would I add the show and hide code into the above code if I cannot edit the code on the page level?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:24:25+00:00Added an answer on June 17, 2026 at 11:24 am

    SHOWING BY DEFAULT

    $('.overview').qtip({
      content: 'Overview',
      position: {
          my: 'bottom center', 
          at: 'top center'
        },
      style: {classes: 'qtip-tipsy'},
      show: { ready: true }
      });
    

    This is the line you need:

    show: { ready: true }
    

    Here is the documentation:
    gTip: http://craigsworks.com/projects/qtip/docs/reference/#show
    gTip2: http://craigsworks.com/projects/qtip2/docs/show/#ready

    SHOWING CONDITIONALLY

    <?php
      // Get the url
      $current_url = $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
      // Get the two parts of the url, seperated by: /
      $url_array = explode('/', $current_url);
    ?>
    
    <script>
      $('.overview').qtip({
        content: 'Overview',
        position: {
          my: 'bottom center', 
          at: 'top center'
        },
        /* Check if the second part of the url is 'overview'
           If it is, add the show ready code */
        <?php if( isset( $url_array[1] ) && $url_array[1] == 'overview' ) : ?>
          show: { ready: true },
        <?php endif; ?>
        style: {classes: 'qtip-tipsy'}
      });
    </script>
    

    SHOWING CONDITIONALLY | ONLY JAVASCRIPT

    <script type="text/javascript">
      $(document).ready(function() 
        {
          // Prepare some variables
          var current_url = window.location.host + window.location.pathname;
          var url_array = current_url.split('/');
          // The qtip code
          $('.overview').qtip({
            content: 'Overview',
            position: {
              my: 'bottom center', 
              at: 'top center'
            },
            show: { ready: url_array[1] == overview ? true : false },
            style: {classes: 'qtip-tipsy'}
          });
      });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having some trouble getting popups with html content to work using qTip2 .
I'm using qTip2 to attach tooltips to some of the buttons on my site.
I am using qTip2 on my website but have some problems with the css.
i have an asp.net mvc site and here is a dynamic tooltip using qTip
I am using qTip2, and I have a list of links that have tooltips
Using this code, the following execution yields strange results: C 100 R W The
I am trying to set a cookie using the following code using jquery and
I'm using Rails 3.2.9. I have some Javascript/jQuery libraries I use, so I placed
I can't seem to get qTip2 to work with Cake. I'm using the following
I'm using qTip2 . I thought it included screen detection - however, I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.