WordPress.org

Ready to get started?Download WordPress

Forums

CM Tooltip Glossary
[resolved] Pro Feature? (10 posts)

  1. kendallq
    Member
    Posted 11 months ago #

    Greetings!
    First, I love your plugin.

    Secondly, I use another plugin that creates a custom post type, events (he plugin is Events Manager Version 5.4.4), and posts (or pages) generated via that plugin don't seem to be parsed for adding tooltips. Your literature mentions something about more post options and I wonder if this is a feature of the Pro version.

    Thank you!

    http://wordpress.org/plugins/enhanced-tooltipglossary/

  2. CM Plugins
    Member
    Plugin Author

    Posted 11 months ago #

    We also use Event Manager on several sites...in general in some cases plugin does not load sue to conflicts and the way to solve this is through your templet if you don't want to hack plugin

    You can add this code
    //include glossary script and stylesheet since it is not loading by itself in search results
    $glossary_path = WP_PLUGIN_URL . '/' . 'tooltipglossary/';
    wp_enqueue_script('tooltip-js', $glossary_path . 'tooltip.js');
    wp_enqueue_style('tooltip-css', $glossary_path . 'tooltip.css');

    Pro version will not solve this issue

    Let me know if this solved issue

  3. CM Plugins
    Member
    Plugin Author

    Posted 11 months ago #

    sorry one correction for the path - please change the tooltipglossary to the correct path in your workpress plugin directory since it depends on the version of plugin you are using
    // include glossary script and stylesheet since it is not loading by itself in search results
    $glossary_path = WP_PLUGIN_URL . '/' . 'tooltipglossary/';
    wp_enqueue_script('tooltip-js', $glossary_path . 'tooltip.js');
    wp_enqueue_style('tooltip-css', $glossary_path . 'tooltip.css');

  4. kendallq
    Member
    Posted 11 months ago #

    That didn't produce any result.
    I tried :
    $glossary_path = WP_PLUGIN_URL . '/' . 'enhanced-tooltipglossary/';
    wp_enqueue_script('tooltip-js', $glossary_path . 'tooltip.js');
    wp_enqueue_style('tooltip-css', $glossary_path . 'tooltip.css');

    In a few different ways, in my child template functions.php, and in a child template of the page itself. I'm sure the code was making to the page but no tooltips were produced like on other regular wp pages.

  5. CM Plugins
    Member
    Plugin Author

    Posted 11 months ago #

    Did you check console for JS errors ?

  6. kendallq
    Member
    Posted 11 months ago #

    Hi! There were a few unrelated JS errors and I've cleared them.

    Here is effectively what is in the event manager template file:

    <?php
    $glossary_path = WP_PLUGIN_URL . '/' . 'enhanced-tooltipglossary/';
    wp_enqueue_script('tooltip-js', $glossary_path . 'tooltip.js');
    wp_enqueue_style('tooltip-css', $glossary_path . 'tooltip.css');
    
    global $EM_Event;
    
    /* @var $EM_Event EM_Event */
    
    echo $EM_Event->output_single();
    ?><!-- #test --><?php
    
    ?>

    I see the "test" comment in the page source so I know my child template and your code is making it to the page. Have I done it wrong?

  7. CM Plugins
    Member
    Plugin Author

    Posted 11 months ago #

  8. kendallq
    Member
    Posted 11 months ago #

    Thanks. Unfortunately, the solution only produced memory errors and after raising the memory to 700M it just produced a white scree (with no error). Looks like I'll have to search to find the right plugin combination. :(

  9. CM Plugins
    Member
    Plugin Author

    Posted 11 months ago #

  10. CM Plugins
    Member
    Plugin Author

    Posted 8 months ago #

    Closed

Reply

You must log in to post.

About this Plugin

About this Topic